Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-01-01 11:17:20
- IschaGast
- New Member
- Registered: 2007-01-01
- Posts: 5
Best way creating subnavigation
I want different kind of sections/subsections etc… with the right url scheme.
- Section 1
- Section 2 (http://site/section2)
- Subsection 1 (http://site/section2/subsection1)
- Subsubsection 1 (http://site/section2/subsection1/subsubsection1)
- Subsubsection 2
- Subsection 2
- Subsection 1 (http://site/section2/subsection1)
- Section 3
- Subsection 1
I hope this is possible some way, I thought the subsections plugin would do the job but it didn’t.
Some other thing I want is that when I am on a section page that I can put in a sidebar or something the following:
Section 2 heading- Subsection 1
- Subsection 2
But when selecting Subsection 1 the menu structure has to be:
Section 2 heading- Subsection 1
- Subsubsection 1
- Subsubsection 2
- Subsection 2
I really hope this is possible because everything else about textpattern does what is needs to do.
Last edited by IschaGast (2007-01-03 22:01:37)
Offline
Re: Best way creating subnavigation
If it’s listing the articles in a section, use <txp:article />
(ie context aware). Try:
form: sidebar
<div id="secondary"><!--sidebar-->
<ul>
<txp:article form="sidebar_item" />
</ul>
form: sidebar_item
<li><txp:permlink><txp:title /></txp:permlink></li>
Offline
#3 2007-01-03 21:59:44
- IschaGast
- New Member
- Registered: 2007-01-01
- Posts: 5
Re: Best way creating subnavigation
I made those three pages and included that code.
When I am on the about page I only see that about me link but the other two links about the site & faq won’t appear.
I found a plugin that does a little bit what I want: http://textpattern.org/plugins/246/djw_section_articles
But I saw somewhere also something like subsections and I am going to play a little with that http://forum.textpattern.com/viewtopic.php?id=17573
After some playing it still doesn’t work ;(
Sub sections does some thing I want but also some things I don’t want.
Above I explained my problem more detailed and I hope the thing I want is possible with textpattern.
Offline
#4 2007-01-27 12:05:37
- gluteus
- Member
- From: Switzerland
- Registered: 2007-01-20
- Posts: 74
Re: Best way creating subnavigation
Maybe its not the best way, but it should work.
1. create under content->links your links to your sections with a category name (for example firstlink) including for example about, galery, contact.
2. do the same for your subsections, category name (for example about) including about me, about my dog, etc.
3. place a <txp:linklist category=“firstlink” wraptag=“p” /> in your page. This should show links to about, galery, contact.
4. create in your page if_sections where your subsections (for example about) should be shown. if_section -> <txp:linklist category=“about” wraptag=“p” /> .
Did that help?
Offline
#5 2007-01-27 21:24:37
- IschaGast
- New Member
- Registered: 2007-01-01
- Posts: 5
Re: Best way creating subnavigation
gluteus wrote:
Maybe its not the best way, but it should work.
1. create under content->links your links to your sections with a category name (for example firstlink) including for example about, galery, contact.
2. do the same for your subsections, category name (for example about) including about me, about my dog, etc.
3. place a <txp:linklist category=“firstlink” wraptag=“p” /> in your page. This should show links to about, galery, contact.
4. create in your page if_sections where your subsections (for example about) should be shown. if_section -> <txp:linklist category=“about” wraptag=“p” /> .
Did that help?
This could be a solution.
But I really want it to be generated automaticly. This is because it’s not me to update the site but some people that don’t understand to much about CMS. It would be easier that they can create new sections and articles and that the don’t have to think about creating a new link everytime.
Offline
Re: Best way creating subnavigation
Don’t know if it helps you (a link to your page would help as its hard to visualise what you want), but have you looked at the category_list tag, which is automatically generated?
http://textbook.textpattern.net/wiki/index.php?title=Txp:category_list_/
Offline
Pages: 1