Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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
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
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
Re: Navigation: 3 levels
vanpie,
Care to share your solution to finish out this thread. Always proves helpful to others :)
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
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
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
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.
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Pages: 1