Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-12-17 03:20:46

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

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

#2 2007-12-17 06:02:12

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

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

#3 2007-12-17 10:05:08

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

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

Board footer

Powered by FluxBB