Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-11-28 16:33:55

brunodario
Member
From: Belo Horizonte, Brasil
Registered: 2007-09-19
Posts: 75

Search box to search posts of one section only?

Is it possible to search posts of one section only using the custom txp tags? How?

If not, is there any plugin to achieve this?

Thx in advance!

Offline

#2 2012-11-28 20:02:59

etc
Developer
Registered: 2010-11-11
Posts: 5,397
Website GitHub

Re: Search box to search posts of one section only?

etc_search should do it:

<txp:etc_search query="{Title,Body} AND Section='one_section'" />

You can make searchable other fields too, just replace {Title,Body} by {Title,Body,Excerpt,Keywords}.

Offline

Board footer

Powered by FluxBB