Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#16 2012-10-12 22:19:28
- GugUser
- Member

- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,477
Re: How to customize <li> in <txp:section_list> ... !?
Other solution:
Give your default section the name “home”. Then this:
<ul>
<txp:if_status><li<txp:if_section name=","> class="active"><txp:section name="home" title="1" /><txp:else />><a href="/"><txp:section name="home" title="1" /></a></txp:if_section></li><txp:else /><li><a href="/"><txp:section name="home" title="1" /></a></li></txp:if_status>
<txp:section_list break="" sections="thework,aanbod,info">
<li <txp:if_section name='<txp:section />'>class="<txp:section /> active"><txp:section title="1" /><txp:else />class="<txp:section />"><a href="/<txp:section />"><txp:section title="1" /></a></txp:if_section></li>
</txp:section_list>
</ul>
Offline
#17 2012-10-12 22:53:44
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: How to customize <li> in <txp:section_list> ... !?
RedFox wrote:
Ahhhh …
<txp:if_section name='<txp:section />'>… :)
Sorry about that! (I copied Julián’s if_variable tag, then changed only half of it…) I corrected my post above.
Last edited by els (2012-10-12 22:54:09)
Offline