3.4 -> Calendar. Fetching only certain classes, it doesn't seems to work for me.

Author Message

laurent le cadet

Thursday 23 September 2004 8:30:48 am

Hi,

I'm trying to use the calendar in the toolbar right.
I created a new class, "calendar" :

- title
- comment
- date_from
- date_to

In the toolbar I choosed to display only this new classe, but the calendar show all classes under the selected node.

Is checked the tolbar.ini file :

[Tool_right_calendar_1]
show_subtree=extranet
show_classidentifiers=calendar

..seems to be ok.

Is that a wellknow bug ? I didn't find anything about that ?

Another question :
The calendar seems to sort the content with the publishing date.
Is there a way to sort it with the attribute date_from I created ?

Thanks.

Laurent.

laurent le cadet

Sunday 26 September 2004 5:18:52 am

After different changes, I overrided the calendar.tpl and change the default fetching method with the class I need :

....../
 month_list=fetch( content, tree, hash( parent_node_id, $log_node.node_id,
                                                class_filter_type, include,
                                                class_filter_array, array( 'the_classe_I_need' )
...../

It's not the best way but it works.

Laurent.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.