jcu-eresearch / matrix-helpers

100% Unguessable™. Public bug tracker, pages, designs and helpers that make life in Squiz Matrix easier. The metaphorical red pill.
https://jcu-eresearch.github.io/matrix-helpers/
GNU Affero General Public License v3.0
3 stars 0 forks source link

Calendar events, or maybe just a countdown display widget #128

Open DanielBaird opened 7 years ago

DanielBaird commented 7 years ago

Known troublemaker Kristin noticed a couple of Calendar asset types and tried to use one as some kind of date-aware asset.

She imagined that having an event list that automagically removed (or displayed differently) past events would be useful for conferences, presentations, guest academics visits, etc.

She already has blocks on pages describing up-coming conferences etc and also thought it would be cool to have a "how long until" countdown on each of them.

davidjb commented 7 years ago

Event lists as separate pages are possible but it's going to require admins to intervene (eg https://matrix.squiz.net/manuals/calendar) to effectively hand-craft the listing per site. That is, unless we can genericise a Calendar Page so it could be slotted into each site.

That said, we can control the Paint Layout for individual events, could decide to not render an event if its date has past (might require SSJS, conditional keywords are poor here). If we're going this way, then a metadata Setting on the Event to 'hide after X days/months' is an idea -- but need to be careful because you mightn't want the Event hidden everywhere (eg accessing the URL directly or a 'past events' list).