Page 1 of 1

[Solved] Menu Manager - Using childrenof and excludeprefix together

Posted: Tue Nov 23, 2010 11:17 am
by JM6891
Hi there,

I'm wondering if anyone can help me?

Is there a restriction on using the childrenof and excludeprefix parameters together?

I need to create a left hand menu using pages from a drop down menu, but need to exclude only one of them. I have tried using childrenof and excludeprefix together but it still displays the unwanted page.

If it's not possible to use these parameters together, does anyone have any suggestions on how I can create what I need?

Thanks in advance

Re: Menu Manager - Using childrenof and excludeprefix together

Posted: Tue Nov 23, 2010 11:37 am
by JM6891
OK,

So, if anyone has come across the same problem as me, I have found a way to do it (albeit in a 'round the houses' fashion).

On the page I wanted to hide I added 'hide' as an extra page attribute.

I then created a new template in menu manager and called it 'Home Left Nav'.

Then, back in my new menu manager template I added the following to the list item:

{if $node->extra1!==''} class="{$node->extra1}"{/if}

Then, in the CSS declared li.hide as display:none

Hope this helps someone else who wanted to achieve the same thing.