Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-10-02 14:40:42

vanderkerkoff
Member
Registered: 2005-05-26
Posts: 45

Order of search results

Hello everyone

I’ve been away from textpattern for some time now so I apologise beforehand for my stupidity.

We’re using a search form like this
<form class=“search” id=“searchglamlife” action=”/search/” method=“get”>
<p><label for=“searchbox” accesskey=“4” ></label><br />

<input title=“searchbox” type=“text” maxlength=”“ size=”“ name=“q” id=“searchbox” value=“Search Glamlife” onfocus = “value=’‘” />
<input type=“submit” class=“button” value=“Search” /></p>
</form>

Can anyone tell me is it possible for me to order/rank the results I get back in any way?

Someone would like the ordering to be newest articles to display first.

We’re still on textpattern 4.0.2 so if it’s impossible with the current install level I wonder if there’s a plugin out there I could use?

Any help, greatly appreciated.

Offline

#2 2007-10-02 14:44:06

vanderkerkoff
Member
Registered: 2005-05-26
Posts: 45

Re: Order of search results

OK, bit more digging and on the search page we have this code

<txp:article listform=“search_results” limit=“200” sortby=“Posted” sortdir=“desc” />

To me that says do what I want, I’ll double check I’m not being asked to do something that is already being done.

Offline

#3 2007-10-02 14:45:05

vanderkerkoff
Member
Registered: 2005-05-26
Posts: 45

Re: Order of search results

Yes, I am.

It is already doing what they want, please ignore me, delete this question if need be.

Offline

Board footer

Powered by FluxBB