Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Article on index page only.
On a similar note, I have a “sticky” article that I want to have remain on my front page. It does not appear in my article list below the article. However, when I click on my link for More Articles <txp: older>, it takes me to Page 2 of the default page and my “sticky” article still appears. How do I get this article to only appear on the front page? I thought I had this working before I upgraded to 4.0.1 Maybe not.
Site: walkableneighborhoods.com
Current code:
Hmm, guess I can’t post my code…
Any help appreciated, thanks!
Last edited by sunnyd503 (2005-10-22 05:42:48)
Offline
Re: Article on index page only.
I made a temporary fix in my site, so you may not be able to see what I’m talking about. I have linked my More Articles link to my Archives page, but on my Archives page I do not have exerpts from the articles, only links. I liked having those exerpts like on “Page 2”. I just didn’t want the sticky article appearing at the top of each subsequent page.
By the way, I have read through the TXP resources out there and tried a number of combinations and none of them seem to work.
Offline
#15 2005-10-23 00:41:50
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Article on index page only.
Its because sticky articles do not account for pages.
Use pastebin to post code if you have troubles posting it to the forum.
I don’t know of any built-in/plugin solution (though that doesn’t mean there isn’t one), but I know you can use straight PHP to work around this. If you could post the tag/parameters you’re using for your sticky article, I/someone else can show you how to go about it. :)
Offline
Re: Article on index page only.
How about the glx_if plugin? It has a bunch of conditionals one of which is if_frontpage.
Refresh Dallas and other Refreshing Cities.
Offline
Re: Article on index page only.
Thanks, the plugin worked great!!
Offline