Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-06-17 19:27:05

SEF
New Member
Registered: 2007-05-28
Posts: 6

Showing the current page (article) in the menu

Hi

After the help I recieved in a previous post I now have another question.

My menu system is a horizontal two level thing – top level shows the site sections, bottom level appears when you click in a section link from the top menu and shows the articles relating to that section.

In the static version of the site (my html mock up) I had the current page on the section menu and the current page on the article menu signified by a little downward pointing arrow above the link text.

I’ve tried to replicate this with the textpattern site for the article page but can’t seem to do it.

I thought I could do it with custom fields – having a custom field for the CSS tag in the article that creates the page and placing it on the body tag, when this an a corresponding tag appear in the menu link that link would have the arrow above it.

When I tried this I got an error saying I shouldn’t use a custom tag outside of an article form.

Should I use a whole load of if statements giving me a different menu depending on what Article ID was being used? Or is there another way that I don’t know of?

Any help you can offer would be much appreciated

SEF

Offline

#2 2007-06-17 20:44:30

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Showing the current page (article) in the menu

You can use the active_class attribute in txp:section_list.
For the articles, have a look at the glx_hl_current plugin.

Offline

Board footer

Powered by FluxBB