Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-01-14 00:09:11

vanpie
Member
From: Belgium
Registered: 2005-07-25
Posts: 24
Website

Navigation: 3 levels

Hi all
I’m doing to a website with textpattern, but I’ve a “little” problem. I’m looking for a 3 levels navigation.

Meaning:
1. Top horizontal navigation (can be hardcodet)
2. Vertical navigation on right side
3. Submenu in the vertical navigation which will fold out on click on 2. level navigation (same place).

Third level navigation ‘ll automatically generate. My website is <a href=“http://orange.56tti.info/ctnnl/formations/”>here</a>.

My actualy module code is the next, that’s only for the first element (Formations CLEF) of the submenu:
<code><div id=“nav”>
<ul>
<li><a href=“http://orange.56tti.info/ctnnl/formations/?c=Formations-Clef”>Formations CLEF</a>
<txp:if_category name=“Formations-Clef”>
<ul><txp:article_custom form=“listsubnav” category=“Formations-Clef” /></ul>
</li></txp:if_category>
<txp:if_individual_article>
<txp:if_article_category name=<txp:category/>>
<ul><txp:article_custom form=“listsubnav” category=“Formations-Clef” /></ul>
</li>
</txp:if_article_category>
</txp:if_article_list>
</ul>
</div> </code>

I’d like submenu appear when i select in menu and when i see an article of this sub category.

How can i do this?

Thanks

P.S: Sorry for my english, i fluently speak french.

Offline

#2 2006-01-14 01:08:43

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: Navigation: 3 levels

What would the third level navigation includes ? Sections, categories (section sensitive-like or not), articles, other things ?

PS: there’s a french forum on Textpattern :)

Offline

#3 2006-01-14 10:24:54

vanpie
Member
From: Belgium
Registered: 2005-07-25
Posts: 24
Website

Re: Navigation: 3 levels

The vertical menu contains sub category names and sub menu contains title of articles present in the sub category

Edit: problem solutioned

Thanks all

Last edited by vanpie (2006-01-14 12:17:26)

Offline

#4 2006-01-15 02:49:57

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: Navigation: 3 levels

vanpie,
Care to share your solution to finish out this thread. Always proves helpful to others :)


Offline

#5 2006-01-15 09:08:54

vanpie
Member
From: Belgium
Registered: 2005-07-25
Posts: 24
Website

Re: Navigation: 3 levels

Ok ;-)

1. I created section with the name of my different sub category. New sections: formations CTNNL, formations CLEF.
2. I changed the urls and I tested the category of my pages:
<code><div id=“nav”>
<ul>
<li><a href=“http://orange.56tti.info/ctnnl/Formations/?s=Formations-CLEF”>Formations CLEF</a>
<txp:if_section name=“Formations-CLEF”>
<ul><txp:article_custom form=“listesousnav” section=“Formations-CLEF” /></ul>
</li></txp:if_section>

<li><a href=“http://orange.56tti.info/ctnnl/Formations/?s=Formations-CTNNL”>Formations CTNNL</a>
<txp:if_section name=“Formations-CTNNL”>
<ul><txp:article_custom form=“listesousnav” section=“Formations-CTNNL” /></ul>
</li></txp:if_section>
</ul></div></code>

View the result: <a href=“http://orange.56tti.info/ctnnl/Formations/?s=Formations-CLEF”>here</a>

Offline

#6 2006-02-18 23:31:58

goncalo.dumas
Member
From: Lisbon
Registered: 2005-12-14
Posts: 97
Website

Re: Navigation: 3 levels

this post was very helpfull to me, thanks.

Offline

#7 2006-02-22 16:51:32

bluelena69
Member
From: North Carolina
Registered: 2006-01-06
Posts: 51

Re: Navigation: 3 levels

Can someone please explain vanpie’s solution, in better English? No offense “vanpie” but I think I am missing something.


“He has emotional problems. We need a new American President…”

—Hugo Chavez

Offline

#8 2006-02-22 18:46:17

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: Navigation: 3 levels

blue,
Basically, he’s created an unordered list with the section “A” at top.
IF the viewer is on seciton “A” then you will also see an article list for that section.

Vanpie did not show us his form, but I assume its just a <code><txp:title /></code> type form with styling around it.

Make sense?

Experiment. Mess up. have fun.


Offline

Board footer

Powered by FluxBB