Page 1 of 1

*solved* Menumanager: Group by sectionHeader and Pages

Posted: Sat May 19, 2007 8:32 pm
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

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

Posted: Tue May 29, 2007 12:36 pm
by cyberman
Maybe you can get some help / inspiration from here

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

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

Posted: Thu Aug 02, 2007 2:59 pm
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}