Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-05-19 14:53:48

pfctdayelise
Member
From: Melbourne, Australia
Registered: 2007-05-18
Posts: 68
Website

How does the search work? Can I search on custom fields?

Hello,

I see there are some nice tags like <txp:if search> and <txp:search_result_count />, but I don’t quite understand where to use them. (I haven’t quite got the hang of Textpattern’s organisation methods…)

I am able to get a search result, on occasion… for some reason I set up a ‘search’ Section (I think a theme told me to :)) (section name and title are both ‘search’)

and I see there is a Form called search_results, but it looks as if it just contains the layout for one result. So I guess this one is called by something else, somewhere…

I don’t have any Articles or Pages called ‘search’… which one should I be trying to make?

Secondly – it seems like the contents of custom fields aren’t included in the search. Is there any way to search on those fields?

thanks in advance,
Brianna

Offline

#2 2007-05-19 15:02:18

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

Re: How does the search work? Can I search on custom fields?

pfctdayelise wrote:

Secondly – it seems like the contents of custom fields aren’t included in the search. Is there any way to search on those fields?

Hi Brianna
custom fields are not searchable as that affects the speed of txp.


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

Offline

#3 2007-05-19 17:51:47

ricetxp
Member
From: London, UK
Registered: 2005-05-24
Posts: 89
Website

Re: How does the search work? Can I search on custom fields?

Offline

#4 2007-05-19 18:44:48

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: How does the search work? Can I search on custom fields?

pfctdayelise wrote:

I see there are some nice tags like <txp:if search> and <txp:search_result_count />, but I don’t quite understand where to use them.

This might help :)

Offline

#5 2007-05-20 02:18:17

pfctdayelise
Member
From: Melbourne, Australia
Registered: 2007-05-18
Posts: 68
Website

Re: How does the search work? Can I search on custom fields?

Thanks els, that got me started (although I had to read a google cached copy of the article :)).

to ricetxp, I would prefer not to hack the core. a nice “advanced search” option where you can choose fields to search on would be nice… ah well :)

Offline

Board footer

Powered by FluxBB