Selecting Upcoming events by metadata

Hi,


I'm wanting to nest into a page a list of the next 5 single calendar events selected by metadata.

The search page does what I want as suggested in this post http://forums.squizsuite.net/index.php?showtopic=8124



However, if I create a trigger to change the status of 'single calendar event' to archive - then the event will no longer be viewable through other assets.

We have a calendar page asset setup so that people can view past events as well as future events.



I could setup a trigger to change the metadata value, and so make it drop off the list, but I'm not sure that would be a good idea.



Is there any way to make a search page "Restrict Results Date Range" using a metadata field rather than a std asset created/updated etc



Thanks Georgina.

Can you perhaps move the asset out of the location of the search page (not under it's root node) after it expires? That way you could have a different location for past events and future events which might simplify the work you have to do displaying them separately. You may be able to automate this by setting up a future linking change to happen when the event ends.

Moving the events to a new location after the event date an interesting idea.
It would then mean that the calendar page asset could be setup to only show past events.



To avoid setting up a trigger to move assets around would it be possible to setup a search page to return results where the start_date attribute is greater than the current date? Ie can search pages do a > b or can they only do a=b.





Georgina.

I believe the search page can't be configured to that level, but if you have your events in separate locations perhaps now you could use something like a calendar page in list mode? it's been a long time since I've configured a calendar, but I believe it could generate that for you (at least I've seen that kind of display done by other implementers in Squiz). There may have been other trickery on top, but you probably won't be limited to just using search.

Thanks Anthony - I'll look at the trigger to move assets.
Would that be the

"Set Future Lineage" - action I want to use?





Georgina.