Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-01-07 05:54:46
- lemonhead
- Member
- Registered: 2006-08-04
- Posts: 32
Sticky will not stick
I wrote a post and gave it a sticky status, but it does not display after clicking on “Publish”. What did I do wrong ?
LH
Offline
#2 2007-01-07 06:08:39
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Sticky will not stick
Sticky articles are special, in that they don’t appear within the normal article flow. Just add to your page:
<txp:article status="sticky" />
and they will show up. :)
- TextBook: article
- FAQ: How do I keep a post at the top of the page?
Offline
#3 2007-01-08 04:30:47
- lemonhead
- Member
- Registered: 2006-08-04
- Posts: 32
Re: Sticky will not stick
I did the above and now the sticky appears. However, I just wrote a live post and it does not display. I checked the help and I am a little confused as it appears a page should allow sticky’s and live posts. Any ideas on why mine does not.
POB
Offline
Re: Sticky will not stick
That’s because it’s only displaying sticky articles, not live. If it’s in a sidebar, or in another place, you might be better off using <txp:article_custom status="sticky" />
or even <txp:article_custom id="theArticleID" />
.
So in your page template:
<h1>My sticky articles are here:</h1>
<txp:article_custom status="sticky" />
<h1>My normal articles are here:</h1>
<txp:article />
Be sure to check out the tag listing too.
Last edited by jm (2007-01-08 07:13:32)
Offline
#5 2007-01-08 09:19:14
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Sticky will not stick
…now the sticky appears. However, I just wrote a live post and it does not display.
Remember, I said:
…add to your page…
and not replace. The FAQ linked to makes this even more explicit:
<txp:article status="sticky" limit=1 />
<txp:article limit=10 />
…will display the most recent Sticky article, followed by the 10 most recent Live articles.
Offline
#6 2007-01-09 01:36:18
- lemonhead
- Member
- Registered: 2006-08-04
- Posts: 32
Re: Sticky will not stick
I did not replace anything, I only added the line of code you suggested. For some strange reason the post eventually showed on the site, but it took about an hour.
I have created a few other test posts today and all displayed promptly. Not sure why there was a delay, but everything looks good today. ?
Thanks for your help, I hope I can assist in a few weeks once I get up to speed on tp.
LH
Last edited by lemonhead (2007-01-09 01:37:35)
Offline
#7 2007-01-09 04:05:13
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Sticky will not stick
Check that your timezone and DST settings are correct, and check the timestamp for the article itself.
Offline
Pages: 1