Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-02-02 18:32:41
- Andrew
- Plugin Author
- Registered: 2004-02-23
- Posts: 730
Navigation & table of contents challenges
I’m developing a site that will require suckerfish dropdowns (or something similar), as well as a table of contents. It will have six sections, each with 0-15 static articles/subpages. Each section should always show all articles within it by default, with the option to limit and sort. I’ve been trying to find a non-plugin solution for this output:
(all items link to either section or article permlink)
<ul>
<li>Section 1</li>
<li>Section 2
<ul>
<li>Section 2 - Article 1</li>
<li>Section 2 - Article 2</li>
<li>Section 2 - Article 3</li>
<li>Section 2 - Article 4</li>
</ul>
</li>
<li>Section 3
<ul>
<li>Section 3 - Article 1</li>
<li>Section 3 - Article 2</li>
</ul>
</li>
[ --- etc --- ]
</ul>
ALSO: (in this method, I may want the option to wrap each h4/ul pair with a classed div for formatting)
<h4>Section 1</h4>
<h4>Section 2</h4>
<ul>
<li>Section 2 - Article 1</li>
<li>Section 2 - Article 2</li>
<li>Section 2 - Article 3</li>
<li>Section 2 - Article 4</li>
</ul>
<h4>Section 3</h4>
<ul>
<li>Section 3 - Article 1</li>
<li>Section 3 - Article 2</li>
<li>Section 3 - Article 3</li>
<li>Section 3 - Article 4</li>
</ul>
[ --- etc --- ]
I’ve not really searched too deep in the forums, but have attempted numerous unsuccessful things with article_custom
and if_different
. Anyone got any tips?
Last edited by Andrew (2006-02-02 18:33:51)
Offline
#2 2006-02-02 22:19:50
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Navigation & table of contents challenges
If you mean something like this, I give up…
Offline