I am facing the following challenge: I have a menu which is four or five levels deep. The frist two levels are displayed with the {menu}-tag as a list on the page. For levels three and deeper I want only a next/previous-link instead of a detailed structure.
Is there any way of limiting cms_selflink to a defined menu-level?
Example:
This is the structure
1
2
- 2.1
- 2.2
- - 2.2.1
- - 2.2.2
- - 2.2.3
- 2.3
etc...
I only want to display
1
2
- 2.1
- 2.2
- 2.3
etc...
And I want to show on 2.2.1 a link to 2.2.2 and on 2.2.2 a link to 2.2.1 and 2.2.3 and on 2.2.3 only a link to 2.2.2
Can anyone help me and point me in the right direction how to accomplish this?
(I hope I could make myself understandable.)
[solved] Limit selflink to menu level
[solved] Limit selflink to menu level
Last edited by klsgfx on Wed Mar 31, 2010 10:25 pm, edited 1 time in total.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Limit selflink to menu level
Look at the help for CGSimpleSmarty
it has functions to retrieve the id's of the next and previous sibling.
it has functions to retrieve the id's of the next and previous sibling.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: Limit selflink to menu level
Great, thank you, that did the trick.calguy1000 wrote: Look at the help for CGSimpleSmarty
it has functions to retrieve the id's of the next and previous sibling.
Re: [solved] Limit selflink to menu level
Hi!
Just add {$node->hierarchy} to your menu template and you don't need an extra plug-in.
Best regards Andreas
Just add {$node->hierarchy} to your menu template and you don't need an extra plug-in.
Best regards Andreas
__/\_|\/|_|-|__ -- designer not coder