Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#2 2006-01-17 00:16:44

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

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

#4 2006-01-17 01:51:15

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Search not working

No problem. :)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

Board footer

Powered by FluxBB