Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-10-30 12:21:01

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

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

#3 2008-10-30 13:38:21

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

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

#5 2008-10-30 14:33:31

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

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

#7 2008-10-30 15:24:19

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

Re: sticky articles on home page

:)


its a bad hen that wont scratch itself.
photogallery

Offline

Board footer

Powered by FluxBB