From 55da83439658ab646f954fe83146d46d24d9cc72 Mon Sep 17 00:00:00 2001 From: Mischa Date: Wed, 8 Jul 2026 10:29:05 +0200 Subject: [PATCH] feat(gpx-manager): list unpublished trips too, newest-first Owner-only page, so drop the .published() filter and order by header.date_start desc so the current/next trip is on top. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01Mpdu3Dt1iVoozHwAMyjrbn --- themes/intotheeast/templates/gpx-manager.html.twig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/themes/intotheeast/templates/gpx-manager.html.twig b/themes/intotheeast/templates/gpx-manager.html.twig index 12997ab..3973351 100644 --- a/themes/intotheeast/templates/gpx-manager.html.twig +++ b/themes/intotheeast/templates/gpx-manager.html.twig @@ -2,7 +2,10 @@ {% block content %} {% set trips_page = grav.pages.find('/trips') %} -{% set trips = trips_page ? trips_page.children.published() : [] %} +{# Owner-only page (admin login), so show unpublished trips too — no .published() + filter — and order newest first by trip start date so the current/next trip is + at the top. #} +{% set trips = trips_page ? trips_page.children.order('header.date_start', 'desc') : [] %}

GPX Files