Files
intotheeast-com-content/pages/02.post/post-form.md
T
m038 534b9a96f1 feat: add demo entries with images + fix form upload action
- New demo entry: Arashiyama with single hero image (bamboo.jpg)
- New demo entry: Gyeongbokgung with four gallery images (palace-gate,
  throne-hall, hanok-rooftops, bugaksan)
- post-form.md: add upload: true to process block so filepond photo
  uploads are handled after page creation; simplify list-of-maps to
  flat map (Symfony YAML preserves insertion order)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-19 00:12:55 +02:00

102 lines
1.9 KiB
Markdown

---
title: 'New Entry'
template: post-form
access:
site.login: true
pageconfig:
parent: '/tracker'
slug_field: 'date,title'
overwrite_mode: false
pagefrontmatter:
template: entry
published: true
form:
name: new-entry
action: /post
enctype: multipart/form-data
fields:
-
name: title
label: Title
type: text
autofocus: true
validate:
required: true
-
name: date
label: Date & Time
type: datetime
default: now
format: 'Y-m-d H:i'
validate:
required: true
-
name: content
label: "What happened today?"
type: textarea
rows: 10
validate:
required: true
-
name: photos
label: Photos (max 4)
type: filepond
multiple: true
destination: '@self'
limit: 4
accept:
- 'image/*'
-
name: lat
label: Latitude
type: text
placeholder: 'tap "Get Location" below'
-
name: lng
label: Longitude
type: text
placeholder: ''
-
name: location_city
label: City
type: text
placeholder: 'e.g. Kyoto'
-
name: location_country
label: Country
type: text
placeholder: 'e.g. Japan'
-
name: weather_temp_c
type: hidden
-
name: weather_desc
type: hidden
novalidate: true
buttons:
-
type: submit
value: Post Daily
classes: btn-post
process:
add_page: true
upload: true
message: 'Entry posted successfully!'
reset: true
---