Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2008-02-15 05:41:34
- Soukyan
- New Member
- Registered: 2007-12-05
- Posts: 3
Style First Article Differently
Okay, so I have adjusted my style sheet for this and it works to an extent. Basically, I set up the following IF statement:
<txp:if_first_article>
<div class=“firstpost”>
<txp:body />
</div>
<txp:else />
<txp:rss_auto_excerpt paragraphs=“4” linktext=“Read more …” />
</txp:if_first_article>
And it works properly for the first article on the first page. But then if I hit the “Older” link, when the second page loads, obviously the style for first post is applied to the first post on that page. I do not want that to happen, so my question is this: Is there a way to check what page has loaded (i.e. http://indigospot.com/?pg=2) using TXP if statements? I was not able to find anything to this effect, but perhaps I am approaching the problem the wrong way.
Also, I’d prefer not to have to set a flag for a first article and then have to go back and change it every time I post a new article. Any help is most appreciated. Thanks in advance.
Offline
Re: Style First Article Differently
you can change the described behavior by using wet_if_page
Offline
#3 2008-02-15 21:58:50
- Soukyan
- New Member
- Registered: 2007-12-05
- Posts: 3
Re: Style First Article Differently
sthmtc wrote:
you can change the described behavior by using wet_if_page
That worked perfectly. Thanks so much for the assistance.
Offline
Pages: 1