Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-05-27 15:17:03

maxvoltar
Member
From: Machelen, Belgium
Registered: 2007-08-16
Posts: 76
Website

How do you select a current item

Example: You have a sidebar with all the articles in your current section. How can you give an extra classname to the article that is currently being viewed?

<tpx:if_current></txp:if_current>?

Last edited by maxvoltar (2008-05-27 15:17:47)


Textpattern projects: Maxvoltar, Made by Elephant, Twunch

Offline

#2 2008-05-27 15:24:16

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: How do you select a current item

Offline

#3 2008-05-28 07:02:19

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: How do you select a current item

In Txp 4.0.7: if_article_id, see change set 2875.

The future’s so bright I gotta wear shades!

Offline

#4 2008-05-28 07:41:31

sthmtc
Member
From: CGN, GER
Registered: 2005-01-17
Posts: 586
Website

Re: How do you select a current item

wet wrote:

In Txp 4.0.7: if_article_id, see change set 2875.

oh! it’s getting better and better…

Last edited by sthmtc (2008-05-28 07:42:11)

Offline

Board footer

Powered by FluxBB