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.

eZ debug

Timing: Jan 19 2025 01:09:27
Script start
Timing: Jan 19 2025 01:09:27
Module start 'layout'
Timing: Jan 19 2025 01:09:27
Module start 'content'
Timing: Jan 19 2025 01:09:28
Module end 'content'
Timing: Jan 19 2025 01:09:28
Script end

Main resources:

Total runtime1.3830 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 590.7813152.6875
Module start 'layout' 0.00640.0034 743.468839.5234
Module start 'content' 0.00971.3717 782.9922465.0547
Module end 'content' 1.38150.0015 1,248.04698.0625
Script end 1.3830  1,256.1094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.2777160.0002
Check MTime0.00150.1052160.0001
Mysql Total
Database connection0.00120.089510.0012
Mysqli_queries1.325895.8653520.0255
Looping result0.00060.0452500.0000
Template Total1.344797.220.6724
Template load0.00260.189320.0013
Template processing1.342197.040420.6710
Template load and register function0.00010.008110.0001
states
state_id_array0.00170.122210.0017
state_identifier_array0.00160.113920.0008
Override
Cache load0.00240.1714290.0001
Sytem overhead
Fetch class attribute can translate value0.00100.073210.0010
Fetch class attribute name0.00170.121530.0006
XML
Image XML parsing0.00060.044410.0006
class_abstraction
Instantiating content class attribute0.00000.001240.0000
General
dbfile0.00190.1353160.0001
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs