Subpage date won't add date in foldername

I would like to create a page for a dates.
They should then date-sorted displayed. the structure of the folders is

termine
 -  2017-01-02-termin
 -  2018-03-02-termin
 ....

the blueprint of termine.yml is the following:

   title: Termine    
   files: false

    pages:
      template: termin
      num: 
        mode: date
        field: terminVon
        format: Ymd

    options: 
      template: false
      status: false

    fields:
      title:
        label: Title
        type:  text

      text:
    label: Text
    type:  textarea

And of the termin.yml ist this the Blueprint:

title: Termin
icon: calendar
pages: false
files: true

options: 
  template: false  
  status: false  
  url: false  


fields:

  tabArtikel:
    label: Termin
    type: tabs
    icon: pencil

  termin:
    label: Titel des Termines
    type:  title
    placeholder: Hier der Titel des Termins.
    required: true
    validate:
      max: 100

  terminVon:
   label: Termin von
   type: date

...

if I put a folder by hand so everything fits, even the date display in the panel.

But if I create an termin via the panel, no date is generated as a folder name.

where is my mistake?

You have to make the page visible for the date to appear. This won’t work with the status option set to false, though.

AH! That was it!

And how ich can get the format from the folders

20171008-termin
to
2017-10-08-termin

When i add in the format: y-m-d it overrides the wrong way when i change the date in the panel

That won’t work, I’m afraid, because numbers before a dash are regarded as visibility flags.

:grinning:Ok! Thank you! My Problem is solved.
You don’t have to be afraid!

1 Like