Static Sublevels in Navigation

About the template and stylesheet - and changing the menu
Post Reply
jtipton2
Posts: 2
Joined: Tue Apr 30, 2013 5:49 pm

Static Sublevels in Navigation

Post by jtipton2 » Tue Apr 30, 2013 5:57 pm

Hello all,

Currently, my CMS shows only <H1> folder headings on the vertical table of contents. Only when you click on a specific <H1> folder do the <H2> options appear.

Is it possible to change the TOC() or LI() functions such that <H1> and <H2> (and possibly <H3>) folders are always shown on the vertical table of contents?

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Static Sublevels in Navigation

Post by cmb » Tue Apr 30, 2013 6:22 pm

Hello,

you do not have to change toc() or li() for this purpose, you just have to call li() with two special parameters from the template:

Code: Select all

<?php echo li($hc, 'menulevel');?>
Christoph
Christoph M. Becker – Plugins for CMSimple_XH

jtipton2
Posts: 2
Joined: Tue Apr 30, 2013 5:49 pm

Re: Static Sublevels in Navigation

Post by jtipton2 » Tue Apr 30, 2013 9:04 pm

That worked perfectly. Thanks so much to my friend in Germany!

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Static Sublevels in Navigation

Post by cmb » Tue Apr 30, 2013 11:27 pm

jtipton2 wrote:That worked perfectly.
Glad to hear. :)
jtipton2 wrote:Thanks so much to my friend in Germany!
You're welcome.

And thank you for reminding me that this was not documented AFAIK. So now I've written an article about the TOC: http://www.cmsimple-xh.org/wiki/doku.php/toc.
Christoph M. Becker – Plugins for CMSimple_XH

Post Reply