Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2005-10-22 05:35:45

sunnyd503
New Member
From: Sacramento, CA USA
Registered: 2005-07-02
Posts: 9
Website

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

#14 2005-10-22 18:14:53

sunnyd503
New Member
From: Sacramento, CA USA
Registered: 2005-07-02
Posts: 9
Website

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

#16 2005-10-23 04:53:45

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: Article on index page only.

How about the glx_if plugin? It has a bunch of conditionals one of which is if_frontpage.

Offline

#17 2005-10-23 06:06:39

sunnyd503
New Member
From: Sacramento, CA USA
Registered: 2005-07-02
Posts: 9
Website

Re: Article on index page only.

Thanks, the plugin worked great!!

Offline

Board footer

Powered by FluxBB