Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-01-17 00:00:36
- Dawk
- Member
- Registered: 2005-02-22
- Posts: 74
Search not working
My search isn’t working & I have tracked down the problem, which creates another problem :)
The problem is I did this… (common errors include substituting < txp:article_custom /> for < txp:article />
Here is my article_custom code that displays my news excerpts exactly like I want, but breaks the search. :( I need to pull 4 different news cats into their own blocks & 2 news cats into a single block.
< txp:article_custom form=“excerpts” limit=“5” category=“daily-news” sortby=“Posted” sortdir=“desc” />
< txp:article_custom form=“excerpts” limit=“5” category=“site-news” sortby=“Posted” sortdir=“desc” />
What is the < txp:article /> code that would produce the same results? I assume I need some conditionals to replicate my article_custom code?
I’ve searched for an hour & came up blank!
Thanks a bunch ;)
P.S. what is the textile equivalent for bbcode [code] tags?
Last edited by Dawk (2006-01-17 00:06:29)
Offline
Re: Search not working
As you have found you require a “txp:article” tag on the page for search results to show. As you require specific categories on your front-page I can’t see a way of changing your exiting code so I would suggest you send your search results to their own section and page where you can use the proper tag without messing up what you already have. Zem has written an article on how to do this. Although it is old the method still applies.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#3 2006-01-17 01:04:39
- Dawk
- Member
- Registered: 2005-02-22
- Posts: 74
Re: Search not working
Thank you so very much ;) I would never of figured that out on my own.
Works like a charm!
Offline
Re: Search not working
No problem. :)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
Pages: 1