Archived Events Listing

hi Folks


Trying to get list of events between specific start and end dates (much like you can with the 'newest' item to set dates from which to show assets but using the event date rather than created date etc).



Had a look at the 'restricted period calendar page' but that only seems to show future events?



K

What about a What's New page? That can list assets between two set dates. Or are you after a calendar thing?

[quote]hi Folks


Trying to get list of events between specific start and end dates (much like you can with the 'newest' item to set dates from which to show assets but using the event date rather than created date etc).



Had a look at the 'restricted period calendar page' but that only seems to show future events?



K[/quote]

You're almost there… a Restricted Calendar Page would be used, however this asset defaults to listing from "today".

In order to control the first date displayed on the page, a date must be supplied by using the "show_date" parameter.



For example, to show events within the configured range from 1st Aug 2008 use:

    http://yoursite.example.com/restricted_calendar?show_date=2008-08-01

[quote]
You're almost there… a Restricted Calendar Page would be used, however this asset defaults to listing from "today".

In order to control the first date displayed on the page, a date must be supplied by using the "show_date" parameter.



For example, to show events within the configured range from 1st Aug 2008 use:

    http://yoursite.example.com/restricted_calendar?show_date=2008-08-01

[/quote]



Has the Restricted Calendar Page asset been modified since the above post, so that you no longer have to add the "show_date" to the URL?



ie in later versions of Matrix does it use the value from the "Earliest date to show" on the Details screen, so that you can just link to it using the asset id?



(we are currently on 3.18 but upgrading shortly)

[quote]
Has the Restricted Calendar Page asset been modified since the above post, so that you no longer have to add the "show_date" to the URL?



ie in later versions of Matrix does it use the value from the "Earliest date to show" on the Details screen, so that you can just link to it using the asset id?



(we are currently on 3.18 but upgrading shortly)

[/quote]

This functionality has not changed. "show_date" is required to show a list beginning before or after today.

I've just looked this up because I was struggling with my restricted period calendar defaulting to todays date. This is crazy functionality - if you have the calendar set to show a restricted period, (for me 1 Jan 2012 - 31 Dec 2012 to create a years archive list) then why does it default to today? That seems totally conflicting to my mind. If I had events appearing for today, then it wouldnt be using a restricted period calendar, I'd use a normal one or a rolling date one!

 

Squiz people - if you read this, please could you report this back to Labs, as for me this functionality greatly reduces the usefulness of a restricted period calendar, to the point of it being farily useless. The only way I can think of using it now will be to nest it into another page, and pass it a variable as I nest it, to replicate the dates that I've already set as the restricted period.

 

Changing it so the default display date is the first day of the restricted period would make a lot more sense to me.

 

Thanks! Charlie.

Seems that a nested content with a passed variable doesn't work either - really frustrating!

 

If I view my restricted calendar page with ?show_date=2012-01-01  on the end of the url, I get the date range I want to see. But putting the calendar in a nested content div, and passing it variable name 'show_date' and variable value '2012-01-01'  - it defaults back to today. Why isn't that passing that variable working?

 

So, basically I can't use the restricted period calendar at all.

 

Has anyone used a restricted period calendar successfully and if so how?

Has anyone used a restricted period calendar successfully and if so how?

 

I just tested this like you said and nested the Restricted Calendar page, then used a var name and 2012-01-01 like you said and it worked fine for me and showed the correct period rather than just today.

 

We are on 4.12.0.

Hi Nic,

 

Just checked mine again, and I can't figure out why its not working - unless its a version difference, we are on 4.8.0.
My nested div has show_date as the variable name, and 2012-01-01 as the variable value, so sounds identical to yours, but on page load I just get the link to the previous page, not the 2012 results.

 

Anyone at Squiz know if this is something that got changed between 4.8.0 and 4.12.0 ?

 

Thanks,
Charlie.

Anyone at Squiz know if this is something that got changed between 4.8.0 and 4.12.0 ?

 

The following enhancement (added since 4.10) is what you need to address your issue:

 

http://bugs.matrix.squiz.net/view_bug.php?bug_id=5737

 

Patch:

http://public-cvs.squiz.net/cgi-bin/viewvc.cgi/cms/content_types/content_type_nest_content/content_type_nest_content_edit_fns.inc?root=matrix_packages_cms&r1=1.70&r2=1.70.6.1

 

Before this enhancement, the GET vars sent to the nested content were not identified by the nested content page as the REQUEST vars.

 

Chiran

Hi Chiran,

 

That's great - many thanks for confirming that and the links to the bug and patch.

I'll have a word with my account manager and see if I can get that patch put on.

 

Thanks! Charlie.