menu should display only first level of structure

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
egerlach
Posts: 74
Joined: Thu 25. Aug 2005, 21:29
Location: Karlsruhe (Germany)

menu should display only first level of structure

Post by egerlach »

How can I adjust my phpwcms to show only first level of menu structure?

example, my menu:

company
item1
item2
products
myitem1
myitem2
[...]

the menu should never show itemX ord myitemX, only company and products. Its because items are listed in teaser contentpart.

thx
Eckard
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Hi Eckard,

I hope I understand your question right. {NAV_LIST_UL:ID,1,.......}
ID = The ID of the parent Level e.g. 0.
1 = Only one Level is shown.

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
360fusion
Posts: 120
Joined: Wed 30. Aug 2006, 01:15
Location: Yarm, UK
Contact:

Post by 360fusion »

Would just hiding each sub section from frontend menu status in the site structure do the trick, that is what i usually do.

Ben
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Why you don´t us it in this way?

Code: Select all

+ company
++ item1
++ item2
+ products
++ myitem1
++ myitem2 
With NAV_LIST_UL we don´t need hiding of sub section for a navigation.

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
360fusion
Posts: 120
Joined: Wed 30. Aug 2006, 01:15
Location: Yarm, UK
Contact:

Post by 360fusion »

wouldn't {NAV_LIST_UL} will hide all subsections? If i need to hide all the subsection of just one category i just use the hide method with {NAV_LIST}.

Ben
egerlach
Posts: 74
Joined: Thu 25. Aug 2005, 21:29
Location: Karlsruhe (Germany)

Post by egerlach »

flip-flop wrote: {NAV_LIST_UL:ID,1,.......}
ID = The ID of the parent Level e.g. 0.
1 = Only one Level is shown.
Knut
How can I insert that code? - I searched within that forum for some hours and found e.g:

<div class="nlu_horiz1"> {NAV_LIST_UL:F,0,1,act_path,active} </div>

Where should I put such a construct? - Where to specify the class? - I've only one css-file I think, the "phpwcms/template/inc_css/frontend.css"
But there are no class defined so far. I've the frontend.css proposed from pepes tutorial for beginners.
And what todo then? - In my standard template (also from pepe) I find:

<!--
---- links - Menue ------------------------------------- //-->
<br \><br \>
{NAV_TABLE_COLUMN:0}<br />
<br />

How should I apply the NAV_LIST_UL?

BTW: I've phpwcms locally stored on my linux PC, apaches serves the site and I sync files to internet with sitecopy and mysqldump. I like editing files with emacs, not editing in the tiny windows of phpwcms-GUI.
BTW2: where can I find the settings phpwcms-GUI shows in standard template? - I don't find NAV_TABLE_COLUMN in the whole phpwcms installation using grep (grep -r NAV_TABLE_COLUMN *), except in content.func.inc.php

thx
Eckard
egerlach
Posts: 74
Joined: Thu 25. Aug 2005, 21:29
Location: Karlsruhe (Germany)

Post by egerlach »

I just found in :
http://www.phpwcms.de/forum/viewtopic.p ... +navlistul
that NAV_LIST_UL is the successor of NAV_TABLE_COLUMN !!! Yeah, a complete new view to my questions .. lets see ...
Post Reply