Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2009-11-10 21:52:42
- richtestani
- Plugin Author
- Registered: 2009-11-08
- Posts: 128
"Hide" an article in a listing?
Is there a way to not include a partcilar article in a listing?
I have a form that resides in a section named ‘donate’
Id like to leave it in that section, but when I list articles in that section, I’d like to not include it,
but make it only accessible from a link within other articles.
How can I do this?
(This doesnt mean the hidden status or skipping)
Thanks
Rich
Offline
Re: "Hide" an article in a listing?
If I’m thinking straight tonight I believe you can set that particular article to “sticky” and it won’t appear in your normal listings but in order to display it you would need to add some extra code to the page template, something like:-
<txp:if_individual_article>
<txp:if_article_id id="??">
<txp:article status="sticky" form="formname" />
<txp:else />
<txp:article form="formname" />
</txp:if_article_id>
</txp:if_individual_article>
in other words if you are looking at that article the article tag switches to display “sticky” articles otherwise it just displays “live” ones by default.
Last edited by thebombsite (2009-11-10 22:20:51)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#3 2009-11-11 10:58:10
- phuture303
- Member
- Registered: 2008-09-14
- Posts: 127
Re: "Hide" an article in a listing?
Maybe you could do some filtering with the help of custom fields or txp-variables?
Offline
#4 2009-11-11 16:32:51
- richtestani
- Plugin Author
- Registered: 2009-11-08
- Posts: 128
Re: "Hide" an article in a listing?
This was helpful – The sticky wasn’t exactly what I needed, but checking the article ID I could at least skip it.
Otherwise wasnt sure the best way to filter it out.
Offline
Pages: 1