Tracker ordering fix + March–April fixture entries #1
+12
-15
@@ -3,7 +3,16 @@ title: 'New Entry'
|
|||||||
template: post-form
|
template: post-form
|
||||||
access:
|
access:
|
||||||
site.login: true
|
site.login: true
|
||||||
login_redirect_here: true
|
|
||||||
|
pageconfig:
|
||||||
|
parent: '/tracker'
|
||||||
|
slug_field: 'date,title'
|
||||||
|
overwrite_mode: false
|
||||||
|
|
||||||
|
pagefrontmatter:
|
||||||
|
template: entry
|
||||||
|
published: true
|
||||||
|
|
||||||
form:
|
form:
|
||||||
name: new-entry
|
name: new-entry
|
||||||
action: /post
|
action: /post
|
||||||
@@ -39,7 +48,7 @@ form:
|
|||||||
label: Photos (max 4)
|
label: Photos (max 4)
|
||||||
type: file
|
type: file
|
||||||
multiple: true
|
multiple: true
|
||||||
destination: 'user://pages/01.tracker'
|
destination: '@self'
|
||||||
limit: 4
|
limit: 4
|
||||||
accept:
|
accept:
|
||||||
- 'image/*'
|
- 'image/*'
|
||||||
@@ -84,19 +93,7 @@ form:
|
|||||||
|
|
||||||
process:
|
process:
|
||||||
-
|
-
|
||||||
add-page-by-form:
|
add_page: true
|
||||||
parent: '/tracker'
|
|
||||||
slug: "{{ form.value.date|date('Y-m-d-Hi') }}-{{ form.value.title|lower|regex_replace('/[^a-z0-9]+/', '-')|trim('-') }}"
|
|
||||||
template: 'entry'
|
|
||||||
frontmatter:
|
|
||||||
title: '{{ form.value.title }}'
|
|
||||||
date: '{{ form.value.date }}'
|
|
||||||
lat: '{{ form.value.lat }}'
|
|
||||||
lng: '{{ form.value.lng }}'
|
|
||||||
location_city: '{{ form.value.location_city }}'
|
|
||||||
location_country: '{{ form.value.location_country }}'
|
|
||||||
weather_temp_c: '{{ form.value.weather_temp_c }}'
|
|
||||||
weather_desc: '{{ form.value.weather_desc }}'
|
|
||||||
-
|
-
|
||||||
message: 'Entry posted successfully!'
|
message: 'Entry posted successfully!'
|
||||||
-
|
-
|
||||||
|
|||||||
Reference in New Issue
Block a user