Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-01-29 05:48:51
- scottt
- New Member
- Registered: 2007-01-29
- Posts: 2
<txp:article ... searchall is screwy
I’ve looked a bit and can’t find anyone else having trouble. In version 4.0.4 when searching the site (I have only a couple sections enabled as searchable) and using searchall=“0” it searches through every article every section, and php code shows up :) However, if you set it to “1”, or remove it all together it works as intended. When you actually build a tag from the link on the side (where it opens up the new window), searchall=“0” is the default behavior.
There is one <txp:article tag on the page, and one <txp:article_custom tag on the page.
Last edited by scottt (2007-01-29 05:53:33)
Offline
#2 2007-01-30 20:42:09
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: <txp:article ... searchall is screwy
..and php code shows up…
What exactly?
When you actually build a tag from the link on the side (where it opens up the new window), searchall=“0” is the default behavior.
This was corrected in svn.
I’m not sure about your description of the problem, so I’ll go over what the behaviour should be, and you can say how yours differs?
- Ignore the tagbuilder for the moment,
searchall="1"is the real default. It searches all articles from all sections you have marked as searchable. searchall="0"will search all articles from the section you use the tag on. Did you, by any chance, try using it on the default section? Because then it would search all sections set to display on the front page.
Offline
#3 2007-01-31 01:35:11
- scottt
- New Member
- Registered: 2007-01-29
- Posts: 2
Re: <txp:article ... searchall is screwy
- Ignore the tagbuilder for the moment,
searchall="1"is the real default. It searches all articles from all sections you have marked as searchable.searchall="0"will search all articles from the section you use the tag on. Did you, by any chance, try using it on the default section? Because then it would search all sections set to display on the front page.
I didn’t realize it was fixed in the latest build. To answer a question, this is all on the default section (which uses the default page). What had happened was
- When I left the searchall field out completely, it searched the proper sections.
- When I used searchall=0 it searched every article, even if it wasn’t set to display on the front page.
- When I used searchall=1 it worked correctly.
Sorry for that confusing nonsense, it was 2am :)
Offline
Pages: 1