Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-03-26 00:22:01

johnnie
Member
Registered: 2007-03-10
Posts: 58

1. Rename the default section and 2. use of active_class

1. How can I change the name / title of the ‘default’ section? It’s kinda weird to see ‘default’ on my title bar when on the starting page :)

2. How do I use the ‘active_class’ property of txp:section_list? I’m using the following tag:

<txp:section_list include_default=1 default_title=“Home” active_class=“active” break=“li” wraptag=“ul” sections=“Nieuws, Online-poker, Regels, Forum, Agenda, Media, FAQ” />

It’s not highlighting the active section as soon as I leave the ‘default’ section.

Thanks for any help :)

Offline

#2 2007-03-26 00:27:40

johnnie
Member
Registered: 2007-03-10
Posts: 58

Re: 1. Rename the default section and 2. use of active_class

never mind the second question. I found a workaround by removing the capitals in the section names. Looks like a bug, but I’m sure you’re already aware of this.

Offline

#3 2007-03-26 01:18:44

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: 1. Rename the default section and 2. use of active_class

It’s not a bug. You have to use the section names in the sections attribute, not their titles.

What tag are you using that is displaying the name ‘default’?


Alex

Offline

#4 2007-03-26 01:29:42

johnnie
Member
Registered: 2007-03-10
Posts: 58

Re: 1. Rename the default section and 2. use of active_class

I actually used capital letters in the section names in the db. I changed these to lowercase and now everything works. What’s so odd about this, is that I do still use capital letters in the sections attribute. Everything works, and I’m actually using title values (the ones with capital letters) in the sections attribute!

The tag displaying ‘default’ is <title><txp:sitename /> – <txp:site_slogan /> [<txp:section />]</title>

Last edited by johnnie (2007-03-26 01:30:20)

Offline

#5 2007-03-26 01:52:00

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: 1. Rename the default section and 2. use of active_class

There’s no provision for setting the default section title. You could use the txp:if_section tag, or generate your page titles with txp:page_title.


Alex

Offline

Board footer

Powered by FluxBB