Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2011-02-23 16:12:53
- bmwg
- Member
- Registered: 2010-04-06
- Posts: 39
sticky article to display on search results page
I have a page template that displays my search results. Like that:
<txp:article searchform="search_results" limit="999" searchsticky="1" />
I want to give the admin of the page the possibility to change the picture and the default text on the search results page. So I created a sticky article with category and section ‘search’ but somehow it doesn’t get displayed on my page.
I’ve tried to put something like this before my search results:
<txp:article status="sticky" form="myForm"/>
but nothing gets displayed.
How can I access the article text and image? (Works fine on every other page except the search results)
Offline
#2 2011-02-23 18:17:02
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: sticky article to display on search results page
Does it work if you wrap it in <txp:if_search>
tags? If not, you can always call it with <txp:article_custom id="123" />
.
Offline