Forums / Developer / content structure menu dynamic

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!)? :-)