content structure menu dynamic

Author Message

Gwenal Le Bihan

Monday 31 January 2011 7:19:27 am

Hello everybody,

is there a reason why in the content_structure_menu_dynamic.tpl in admin2 (4.4),

this portion of code (from 4.3)

this.classes = {*
*}{ldelim}{*
*}{foreach fetch('class','list_by_groups',hash('group_filter',$filter_groups,'group_filter_type',$filter_type)) as $class}{*
*}"{$class.id}":{ldelim}name:"{$class.name|wash(javascript)}",identifier:"{$class.identifier|wash(javascript)}"{rdelim}{*
*}{delimiter},{/delimiter}{*
*}{/foreach}{*
*}{rdelim};

has been replaced by

this.classes = {*
*}{ldelim}{*
*}{foreach fetch('class','list') as $class}{*
*}"{$class.id}":{ldelim}name:"{$class.name|wash(javascript)}",identifier:"{$class.identifier|wash(javascript)}"{rdelim}{*
*}{delimiter},{/delimiter}{*
*}{/foreach}{*
*}{rdelim};

which can generated an unsorted list of classes which is not convenient when they are numerous?

thank you

Gwenal

ps : how do i delete the tag below (content struture menu, i slipped!)? :-)

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 18 2025 02:19:06
Script start
Timing: Jan 18 2025 02:19:06
Module start 'layout'
Timing: Jan 18 2025 02:19:06
Module start 'content'
Timing: Jan 18 2025 02:19:07
Module end 'content'
Timing: Jan 18 2025 02:19:07
Script end

Main resources:

Total runtime0.7064 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 587.9141152.6250
Module start 'layout' 0.00520.0028 740.539139.4531
Module start 'content' 0.00800.6970 779.9922403.0078
Module end 'content' 0.70490.0014 1,183.00008.1641
Script end 0.7063  1,191.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4668160.0002
Check MTime0.00130.1890160.0001
Mysql Total
Database connection0.00070.093610.0007
Mysqli_queries0.669794.8050460.0146
Looping result0.00040.0575440.0000
Template Total0.681496.520.3407
Template load0.00190.265220.0009
Template processing0.679596.196320.3397
Template load and register function0.00020.026310.0002
states
state_id_array0.00040.062710.0004
state_identifier_array0.00070.093820.0003
Override
Cache load0.00140.2046250.0001
Sytem overhead
Fetch class attribute can translate value0.00050.064810.0005
Fetch class attribute name0.00050.068410.0005
XML
Image XML parsing0.00010.014910.0001
class_abstraction
Instantiating content class attribute0.00000.000410.0000
General
dbfile0.00070.0965100.0001
String conversion0.00000.000840.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs