Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calendar - Improvement: Sort the calendars/categories listing on the main calendar homepage #4

Open
megoconnor opened this issue Jun 12, 2020 · 1 comment

Comments

@megoconnor
Copy link

Description

The categories that display on the main calendar homepage are based on what values are selected in the "Category" multi-select in the metadata of that page and are retrieved in a random order.

Screen_Shot_2020-06-12_at_4_51_10_PM

It would be nice if these were either sorted alphabetically or if there was some way to control the order of those categories.

Workaround

To sort the calendars alphabetically, in the _cms/formats/full-calendar Format, sort the $calendarCategories values (around Line 8):

#set ($calendarCategories = $_XPathTool.selectNodes($callingPage, "dynamic-metadata[name='categories']/value"))
#set ($calendarCategories = $_SortTool.sort($calendarCategories,"value"))
@megoconnor
Copy link
Author

megoconnor commented Jun 16, 2020

Ticket gz#12599

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant