Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-01-27 16:03:06

guiguibonbon
Member
Registered: 2006-02-20
Posts: 296

Browse through search results

I need a little group thinking here.

I’m making a website that lists hotels, restaurants, etc. You can search through them with all sorts of custom fields (distance to beach, poppularity based on # of comments and visits, price, etc.). I’m guessing people will usually not want to see a single result’s details, but rather compare a few. So, there’s the search page, the search results page, but I would also like that when people go to an article page, they easily go to next and previous search results.

I’m guessing that would be impossible within the article page. I guess I should have a second search results page where the article limit is set to one, with pagination links.

Any idea on how that could be achieved?

Does it makes sense?

Offline

#2 2007-01-27 17:09:13

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Browse through search results

Well first, Txp’s search doesn’t look through custom fields, it only searches article titles and bodies, so you’ll need a plugin that will do that.

Offline

#3 2007-01-27 17:21:06

guiguibonbon
Member
Registered: 2006-02-20
Posts: 296

Re: Browse through search results

Yeah, that’s done already

Offline

#4 2007-01-27 18:00:41

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: Browse through search results

guiguibonbon wrote:

Yeah, that’s done already

can you release it?:)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#5 2007-01-27 19:08:23

guiguibonbon
Member
Registered: 2006-02-20
Posts: 296

Re: Browse through search results

To be honest, it’s nothing more than two very specific lines of code added to the doArticles function. I doubt it’s worth making a plugin of it.

Offline

Board footer

Powered by FluxBB