Monday 20 April 2009 5:38:15 am
Hello,
I have a strange rendition in my flat_left.tpl This is an excerpt of my tree :
Root (node_id = 2)
->Homepage 1 (frontpage) node_id = 200
-->folder 1 (folder)
--->article1 (article)
--->article2 (article)
-->folder 2 (folder)
-->folder 3 (folder)
-->folder 4 (folder)
-->folder 5 (folder2)
--->article10 (article) : node_id 1000 etc
In my menu.ini, I excluded the class folder2 and when I www.mysite.com/content/view/full/1000, the flat_left is open like this :
-->folder 1 (folder)
--->article10 (article)
-->folder 2 (folder)
-->folder 3 (folder)
-->folder 4 (folder) -->folder 5 (folder2) as if article10 was a child of folder 1 which is not the case...
Of course, i'd like it to be :
-->folder 1 (folder)
-->folder 2 (folder)
-->folder 3 (folder)
-->folder 4 (folder) -->folder 5 (folder2) And of course i don't want to exclude "article" from my menu.ini because in other views, i need them to appear in the menu ... This is my code :
{def $class_filter = ezini( 'MenuContentSettings', 'LeftIdentifierList', 'menu.ini' )}
{def $max_depth=$pagerootdepth|sum(4)}
{*maxdepth : {$max_depth}
uri_path : {$uri_path|attribute(show)}*}
{let docs=treemenu( $uri_path,
,
$class_filter,
$pagerootdepth,
$max_depth)
depth=1
last_level=0
a_class=false()
li_class=false()
lastli_class=false()}
($pagerootnode = 1) If I make an attribute(show) of $docs, it displays article10 inside folder 1, so it seems, the treemenu operator is not taking care of the original tree?? Any ideas if there's someting wrong in what I do or do I have to create separate classe for what's inside left menu and what's outside of it?? Thank you for your help! -Gwen
|