Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
sticky articles on home page
If a section is set with “on front page=yes”, why dont sticky articles of that particular section show up on the home section-preferably on top?
thanks
Last edited by kvnmcwebn (2008-10-30 12:22:21)
its a bad hen that wont scratch itself.
photogallery
Offline
#2 2008-10-30 13:25:43
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: sticky articles on home page
Kevin
AFAIK, you’ll need an article_custom
tag in your page/form handling the front page or add searchsticky="1"
to your article tag’s attributes.
— Steve
Offline
Re: sticky articles on home page
Kevin,
“on front page” means “on default section” (aka homepage), not “on section front page”.
Also, sticky articles won’t be output by default just using txp:article
nor txp:article_custom
. You may want to investigate net-carver’s suggestion.
Offline
#4 2008-10-30 13:59:40
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: sticky articles on home page
Kevin
If you specifically need the sticky articles above the others, then use <txp:article_custom status="sticky" />
in your page/form for the homepage just above the <txp:article />
tag.
Last edited by net-carver (2008-10-30 14:00:13)
— Steve
Offline
Re: sticky articles on home page
net-carver wrote:
bq.If you specifically need the sticky articles above the others, then use <txp:article_custom status="sticky" />
in your page/form for the homepage just above the <txp:article />
tag.*
ahh cheers steve
its a bad hen that wont scratch itself.
photogallery
Offline
#6 2008-10-30 15:10:44
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: sticky articles on home page
use
<txp:article_custom status="sticky" />
in your page/form for the homepage just above the<txp:article />
tag.
Remember that this would also display sticky articles from sections that are set to not to be displayed on the front page, if any. Or, if used on a section home page, sticky articles from other sections. <txp:article status="sticky" />
would prevent that.
Edit: (OT) I love the favicon you made for Textbook :)
Last edited by els (2008-10-30 15:12:42)
Offline
Offline
Pages: 1