Is there a posibility to use an other template for a parentRow on the second level?
I know about the categoryFoldersTpl, but since you have to set rel="category" or template to blank this isn't the best solution..
Is there any other solution to use a different parentRowTpl like a subParentRowTpl for the second level?
I need this because the HTML of the first level contains elements that I dont use on the second level.
What's different on the second level ?
If its just styling you could add a class to the second level using japery and style it with that class.
Plus if its the second level can't you use ul li ul to target it ?
Can you give a example of what your trying to do.
I know how to fix this the dirty/bad way, by CSS.
But the right/clean way would be to remove the unneeded HTML.
And that would be possible to have an alternative parentRow template for the second level.
<ul class="navigation">
<li class="has-sub"><a href="/" title="" class="button"><span>First level</span></a>
<ul>
<li class="has-sub"><a href="/" title="">Second level</a>
<ul>
<li><a href="/" title="">Third level</a></li>
</ul>
</li>
</ul>
</li>
</ul>
Can you post what your actually trying to achieve as that doesn't look like dirty HTML to me, just nested ul > li's
Hi Paulp,
That right, because it is the HTML I would like it to output.
This is what MODx would output instead:
<ul class="navigation">
<li class="has-sub"><a href="/" title="" class="button"><span>First level</span></a>
<ul>
<li class="has-sub"><a href="/" title="" class="button"><span>Second level</span></a>
<ul>
<li><a href="/" title="">Third level</a></li>
</ul>
</li>
</ul>
</li>
</ul>