/
Tree View: Layer Date

Tree View: Layer Date

If you would like to add a hierarchical filter for date then add a tree view field to the Layer. For example I have three tagbox fields for Year/Month/Day in my Basic Information Layer and have added a Tree View field to display the date:

Picture of tree view field

 

I have entered the below in Levels. The allow recursion will be set to false by default after saving.

The fields will be shown in the filter in the order below. For an American date for example you may want to use month/day/year.

[ { "fieldId": "year" }, { "fieldId": "month" }, { "fieldId": "day" } ]

 

Once this is done you need to add a Channel Filter:

image-20250108-090635.png

This will then result in the Hierarchical Filter as pictured below:

 

The filter uses the name display pattern of the list that is linked to the tagbox field. For example if you would like the filter to display a month name such as October instead of 10 then you can add code to the Name Display pattern of the list that is linked to your Month tagbox in this example.

 

 

Related content

Tree View: Layer Keywords Classification with Path
Tree View: Layer Keywords Classification with Path
More like this
Tree View
More like this
Channel Filter: Show Items with any Tag in a Tagbox
Channel Filter: Show Items with any Tag in a Tagbox
More like this
Tree View: Layer Country
Tree View: Layer Country
More like this
Date Range Filter
Date Range Filter
More like this
Dynamic View: Filter for Tagbox
Dynamic View: Filter for Tagbox
More like this

FotoWare Switzerland AG - CH-5033 Buchs - Switzerland
https://picturepark.com - support@picturepark.com
© 2023 FotoWare Switzerland AG