Files
intotheeast-com-content/pages/02.post/post-form.md
T

2.5 KiB

title, template, access, login_redirect_here, form
title template access login_redirect_here form
New Entry post-form
site.login
true
true
name action enctype fields buttons process
new-entry /post multipart/form-data
name label type autofocus validate
title Title text true
required
true
name label type default format validate
date Date & Time datetime now Y-m-d H:i
required
true
name label type rows validate
content What happened today? textarea 10
required
true
name label type multiple destination limit accept
photos Photos (max 4) file true user://pages/01.tracker 4
image/*
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 type
weather_temp_c hidden
name type
weather_desc hidden
type value classes
submit Post Entry btn-post
add-page-by-form
parent slug template frontmatter
/tracker {{ form.value.date|date('Y-m-d') }} entry
title date lat lng location_city location_country weather_temp_c weather_desc
{{ form.value.title }} {{ form.value.date }} {{ form.value.lat }} {{ form.value.lng }} {{ form.value.location_city }} {{ form.value.location_country }} {{ form.value.weather_temp_c }} {{ form.value.weather_desc }}
message
Entry posted successfully!
reset
true