Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2005-06-29 18:49:30
- dmeehan
- New Member
- Registered: 2005-06-24
- Posts: 9
search only one section?
Is it possible to search only within one section of a site?
Offline
#2 2005-06-29 18:55:40
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: search only one section?
In Presentation > Sections you can for every section set if it should be included in the search.
Offline
#3 2005-06-29 19:03:19
- dmeehan
- New Member
- Registered: 2005-06-24
- Posts: 9
Re: search only one section?
Thanks for the reply.
However, what I want to do is have a main site search that searches all sections, and then another search that only searches within a specified section.
If I turn off searching for some sections, the main site search will not work properly.
Offline
#4 2005-06-29 20:27:25
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: search only one section?
Ah, I see. As far as I know that’s not possible, or you would have to make that section a separate TXP install…
Offline
#5 2005-06-29 22:19:19
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: search only one section?
with -current, <txp:article searchall=0 />
on the page template for the section you want to search, and <txp:search_input section="mysection" />
to display the form.
Alex
Offline
#6 2005-06-29 23:06:15
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: search only one section?
Wow!
Offline
#7 2005-06-29 23:14:58
- marios
- Archived Plugin Author
- Registered: 2005-03-12
- Posts: 1,253
Re: search only one section?
I’m excited.That was something that I was asking myself recently, how to do this. Err and well here it comes.Thanks Zem.
regards, marios
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline
#8 2005-06-29 23:33:49
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: search only one section?
That’s very cool! I’ve just added it to the tips section of the resources site. Thanks Alex.
Offline
Re: search only one section?
Would there be a way to have an “advanced” search form with options, like a pulldown for the sections?
Offline
#10 2005-06-30 17:45:29
- dmeehan
- New Member
- Registered: 2005-06-24
- Posts: 9
Re: search only one section?
Thanks for the info!
How can I download the most recent version (i.e. one that support this type of search)?
Offline
#11 2005-06-30 19:03:56
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: search only one section?
Offline
#12 2005-06-30 20:16:30
- dmeehan
- New Member
- Registered: 2005-06-24
- Posts: 9
Re: search only one section?
Thanks for the link…
however, that instructs me to use the files from /deanload which is the version I’m already using (last updated April 29, it looks like). Any ideas where I can find a newer version?
Offline