Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
custom sort order in section list
hi,
Can a section nav list have two sections that always float to the top of the sort order?
example of the basic list code
<txp:section_list active_class="activelist" break="li" class="navlist" default_title="Financial Service" label="Financial Services" exclude="about, faqs, contact, advitorial" labeltag="h3" wraptag="ul" />
The closest thing i found to a custom sort uses a custom field and only works for articles sort="custom_5 asc"
Is there any way that two of the sections will magically float to the top of the section list? it will always be the same two at the top.
thanks
edited for mistake
Last edited by kvnmcwebn (2007-12-17 03:21:56)
its a bad hen that wont scratch itself.
photogallery
Offline
Re: custom sort order in section list
Why don’t you just input those two sections manually and exclude them from the section list?
<h3>Financial services</h3>
<ul class="navlist">
<li>
<a href="<txp:site_url /><txp:section name="mySection"/>/"<txp:if_section name="mySection"> class="activelist"</txp:if_section>>
<txp:section name="mySection" title="1" />
</a>
</li>
<txp:section_list active_class="activelist" break="li" exclude="mySection, about, faqs, contact, advitorial" wraptag="" />
</ul>
Last edited by jm (2007-12-17 06:02:52)
Offline
Re: custom sort order in section list
thats brilliant jm i was thinking about how i could do that but didnt figure it out….
its a bad hen that wont scratch itself.
photogallery
Offline
Pages: 1