Tuesday 02 January 2007 11:46:54 pm
Hello, I have a listing as
M2 (node #301)
--S1 (node #401)
--S3 (node #402) --S2 (node #403)
M1(node #302)
--S1 (node #401)
--S3 (node #402) --S2 (node #403) I do fetching as {def $cM=fetch(content,list, hash('parent_node_id', 59,'sort_by',array( 'priority', true() )))}
When I list them they appear as
M1 (node #302)
--S1 (node #401)
--S3 (node #402) --S2 (node #403)
M2(node #301)
--S1 (node #401)
--S3 (node #402) --S2 (node #403) Note that only M1 and M2 are sorted based on priority but not S1, S2 and S3. I use the following code to list them {foreach $cMs as $cM}
{$cM.name|wash}
{foreach $cM.children as $child}
<a href={$child.url_alias|ezurl()}>{$child.name|wash}</a>
{/foreach}
{/foreach}
How can I sort S1, S2 and S3?
|