21b572677e
Adds two configurable toggles to the trip blueprint (Admin2 Trip tab): - use_gpx: show/hide GPX tracks on all maps (default: enabled) - autoconnect: draw connector lines between markers (default: enabled) When use_gpx is off, GPX files are not fetched or rendered on any map (home, map, trip, dailies). The stats panel in trip.html.twig still reads GPX_URLS directly and is unaffected. When autoconnect is off, buildJourneySegments suppresses all auto-connectors; only entries with force_connect:true still draw a line — making force_connect behaviour independent of both settings. Also refactors the inline Promise.all in trip.html.twig to use the shared renderGpxJourney utility (reducing duplication). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vgmzx8VTTTmCskSpQtsLTr
96 lines
2.4 KiB
YAML
96 lines
2.4 KiB
YAML
title: 'Trip'
|
|
|
|
form:
|
|
fields:
|
|
tabs:
|
|
type: tabs
|
|
active: 1
|
|
fields:
|
|
|
|
content:
|
|
type: tab
|
|
title: Content
|
|
fields:
|
|
header.title:
|
|
type: text
|
|
label: Title
|
|
validate:
|
|
required: true
|
|
|
|
content:
|
|
type: markdown
|
|
label: Description
|
|
|
|
trip:
|
|
type: tab
|
|
title: Trip
|
|
fields:
|
|
header.date_start:
|
|
type: date
|
|
label: 'Start Date'
|
|
placeholder: '2026-06-17'
|
|
help: 'First day of the trip'
|
|
|
|
header.date_end:
|
|
type: date
|
|
label: 'End Date'
|
|
placeholder: ''
|
|
help: 'Leave blank if trip is ongoing'
|
|
|
|
header.cover_image:
|
|
type: text
|
|
label: 'Cover Image Filename'
|
|
placeholder: 'cover.jpg'
|
|
help: 'Used in the trips listing page'
|
|
|
|
header.album_url:
|
|
type: text
|
|
label: 'Photo Album URL'
|
|
placeholder: 'https://photos.google.com/...'
|
|
help: 'Link to external photo album for this trip'
|
|
|
|
header.tagline:
|
|
type: text
|
|
label: Tagline
|
|
placeholder: '6 weeks from Venice to Sicily by train'
|
|
help: 'Short description shown on homepage highlight cards'
|
|
|
|
header.use_gpx:
|
|
type: toggle
|
|
label: Show GPX tracks
|
|
help: 'Display GPX route files on the map'
|
|
highlight: 1
|
|
default: 1
|
|
options:
|
|
1: 'Yes'
|
|
0: 'No'
|
|
validate:
|
|
type: bool
|
|
|
|
header.autoconnect:
|
|
type: toggle
|
|
label: Connect markers
|
|
help: 'Draw connector lines between location markers (suppressed where GPX covers the route)'
|
|
highlight: 1
|
|
default: 1
|
|
options:
|
|
1: 'Yes'
|
|
0: 'No'
|
|
validate:
|
|
type: bool
|
|
|
|
publishing:
|
|
type: tab
|
|
title: Publishing
|
|
fields:
|
|
header.published:
|
|
type: toggle
|
|
label: Published
|
|
highlight: 1
|
|
default: 1
|
|
options:
|
|
1: 'Yes'
|
|
0: 'No'
|
|
validate:
|
|
type: bool
|