Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: selected sections highlighted in navbar
So what if you gave them unique categories maybe using category2 for the job then linked to them with a category call?
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#17 2006-01-02 22:13:59
- nardo
- Member

- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: selected sections highlighted in navbar
p – haven’t read your post in detail and no site to look at … but can you add the links dynamically through a form or multiple forms?
if you’re listing articles, you could use an article or article_custom tag calling a form that builds the link … using this form of the permalink tag:
<a href="<txp:permlink />" class="<txp:title />" "><txp:title /></a>
similarly, use this approach in your body tag… then you have a hook for css active styling, e.g.
body#consumables a.consumables {color:red}
(you could use a custom field for this purpose, or any other ‘article’ field)
there may be easier ways of course : )
Last edited by nardo (2006-01-02 22:18:15)
Offline
#18 2006-01-02 22:36:36
- -P-
- Member

- From: Finland
- Registered: 2005-09-10
- Posts: 211
Re: selected sections highlighted in navbar
Okay… I didn´t quite understand what you mean. I´m using form allready to call header in, and that navigation is in header kinda between other stuff so I could not (or wasn´t skilled enough) to make navigation to be called in from separate form. :)
The one site in question, I did those 20 sections :D, got it working. Gonna test other ways to another site since I get it´s basic structure okay. But over all, this navigation active-tab rule is something that makes me feel just total unskilled idiot!
Offline
#19 2006-01-02 23:22:39
- nardo
- Member

- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: selected sections highlighted in navbar
there are forms, forms and forms : ) what I suggested above is not a txp:output_form thing… but an <txp:article listform="list-article-pages-with-active-links" /> kind of thing
clear as mud?
Offline
#20 2006-01-02 23:26:48
- nardo
- Member

- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: selected sections highlighted in navbar
PS more than one way to skin a cat… you might find this useful
Offline
#21 2006-01-02 23:32:15
- -P-
- Member

- From: Finland
- Registered: 2005-09-10
- Posts: 211
Re: selected sections highlighted in navbar
Don´t have a faintest idea what you´re talking about! LOL
Listform?
Thank you nardo for the link, that seems to be more something I understand. Will have an look into that one!
Offline
#22 2006-01-03 04:14:22
- nardo
- Member

- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: selected sections highlighted in navbar
listform… one of the attributes for txp:article tag
altho you’d probably want to use txp:article_custom to list articles (pages) for a nav list
Offline