*solved* Menumanager: Group by sectionHeader and Pages

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
SimonSchaufi

*solved* Menumanager: Group by sectionHeader and Pages

Post by SimonSchaufi »

Hello!
I have not much knowledge about the Menumanager so i need help:

I want to put out all the sectionHeaders and below each sectionHeader its own subpages. How do i do this? It shall display only the first level below the secion header and i only want to display a selection of some secionHeaders.

Online example:

http://de.selfhtml.org/

Code: Select all

Inhalt: Allgemeines
Editorial
Einführung

Inhalt: Web-Technologien
HTML/XHTML  
Stylesheets (CSS)  
XML/DTDs
JavaScript/DOM
Dynamisches HTML
Perl
PHP

Inhalt: Ergänzendes Wissen
Internationalisierung  
Grafik
Web-Projektverwaltung
Webserver/CGI
Diverse technische Ergänzungen

Inhalt: Extras
Fertige Layouts
Kleine Helferlein
shall be one menu and

Code: Select all

Navigation: Einstieg
Wie fange ich an?
Häufig gestellte Fragen (FAQ)

Navigation: Kurzreferenzen
Kurzreferenz: HTML
Kurzreferenz: CSS

Navigation: Verzeichnisse
Inhaltsverzeichnis
Syntaxverzeichnis
Stichwortverzeichnis

Navigation: Extras
Quickbar
Sidebars
Suche
the other one.


The sectionHeader should be formated like this:


sectionHeader

and the Sub pages like this:


 Page 1


 Page 2
Last edited by SimonSchaufi on Sat Aug 04, 2007 1:55 pm, edited 1 time in total.
cyberman

Re: Menumanager: Group by sectionHeader and Pages; table of Content

Post by cyberman »

Maybe you can get some help / inspiration from here

http://wiki.cmsmadesimple.org/index.php ... nu_Manager
SimonSchaufi

*solved* Re: Menumanager: Group by sectionHeader and Pages

Post by SimonSchaufi »

Here my solution:

Code: Select all

{if $count > 0}
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
<p>
{elseif $node->depth < $node->prevdepth}
</p>
{/if}

{if $node->type == 'sectionheader'}
<table border="0" cellpadding="5" cellspacing="0" width="250"><tr>
<td class="doc"><b>{$node->menutext}</b></td></tr></table>
{else}
<img src="uploads/images/bullets/kap.gif" width="15" height="13" alt="Kapitel">
<a href="{$node->url}" {if $node->titleattribute != ''} title="{$node->titleattribute}"{/if}>{$node->menutext}</a><br />
{/if}
{/foreach}
{/if}
Last edited by SimonSchaufi on Sat Aug 04, 2007 1:56 pm, edited 1 time in total.
Locked

Return to “Modules/Add-Ons”