Files
intotheeast-com-content/pages/02.post/post-form.md
T
m038andClaude Opus 4.8 8b037511fd feat(post-form): require 1–6 photos per entry
Raise the FilePond limit from 4 to 6 and enforce a minimum of one photo.
The photo field is first in the form, so initValidation checks it first: an
empty picker blocks submit, reveals the (possibly collapsed) photo section,
and shows "Add at least one photo." under its header. Labels updated to
"Photos (1–6)".

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-04 20:59:01 +02:00

5.0 KiB
Raw Blame History

title, template, access, pageconfig, pagefrontmatter, form
title template access pageconfig pagefrontmatter form
New Entry post-form
site.login
true
slug_field overwrite_mode
date,title false
template published
entry true
name action enctype fields novalidate buttons process
new-entry /post multipart/form-data
name label type multiple destination limit accept
photos Photos (16) filepond true @self 6
image/*
name label type validate
title Title text
required
true
name label type format validate
date Date & Time datetime Y-m-d H:i
required
true
name label type rows validate
content What happened today? textarea 10
required
true
name label type placeholder
lat Latitude text tap "Get Location" below
name label type placeholder
lng Longitude text
name label type placeholder
location_city City text e.g. Kyoto
name label type placeholder
location_country Country text e.g. Japan
name label type default options
weather_desc Weather Condition select
Sunny Partly cloudy Cloudy Foggy Drizzle Rain Snow Thunderstorm
— none — ☀️ Sunny Partly cloudy ☁️ Cloudy 🌫️ Foggy 🌦️ Drizzle 🌧️ Rain ❄️ Snow ⛈️ Thunderstorm
name label type placeholder validate
weather_temp_c Temperature (°C) number tap "Get Weather" or type it
min max
-60 60
name label type default options
transport_mode How I got here select
walking bicycle bus train car plane
— not specified — 🚶 Walking 🚲 Bicycle 🚌 Bus 🚆 Train 🚗 Car ✈️ Plane
name label type classes placeholder help
hero_image Hero Image Filename text advanced-field photo.jpg Filename of the hero/header image. Leave blank to use the first uploaded photo.
name label type classes highlight default options validate
force_connect Force connector line toggle advanced-field 0 0
1 0
Yes No
type
bool
name label type classes highlight default options validate
featured Featured highlight toggle advanced-field 0 0
1 0
Yes No
type
bool
true
type value classes
submit Post Daily btn-post
add_page upload message reset
true true Entry posted successfully! true