Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-02-13 15:25:00

banko
New Member
Registered: 2007-01-29
Posts: 5

Different link style - depend on page visiting - SOLVED

Hey Guys

Im hoping for some help once again.

Imagine a menu containing two links: Home and About – just to simplify.

What i want is having one color and background for the link to the active page and another color and background for the links to pages besides the active page.

Can some of you give some help on how to do it most easily?

I have considered the if_article= – but would then have to fill in for all the links/articles! Is there some easier way?

I hope some of you can help me, and thank you all in advance.

Last edited by banko (2007-02-13 21:33:51)

Offline

#2 2007-02-13 15:37:22

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,532
Website GitHub Twitter

Re: Different link style - depend on page visiting - SOLVED

have tried txp:if_section and txp:if_category?

If you affect your articles to a specific section you can use txp:if_section

Hope that help you

Offline

#3 2007-02-13 16:52:18

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: Different link style - depend on page visiting - SOLVED

Plugins are really great way to accomplish this via section navs. Try rdt_dynamenus or tsw_sec_list or any of these

Offline

#4 2007-02-13 21:33:37

banko
New Member
Registered: 2007-01-29
Posts: 5

Re: Different link style - depend on page visiting - SOLVED

Hi mrdale – perfect answer, the rdt_dynamenus solved it beautifully.

Thanks alot! :)

Offline

Board footer

Powered by FluxBB