Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-06-26 21:35:44
- tdskate
- New Member
- Registered: 2006-06-15
- Posts: 7
default section_title
So I made a news section which i have “Selected by default”
But now the section_title still says “default”… it should say “news”
Am i doing something wrong here ?
And i tried changing it with <txp:if_section name=“default”>news<txp:if_section />
But it doesn’t work.
Offline
#2 2006-06-26 21:42:31
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: default section_title
“Selected by default” means that in the ‘write’ screen this section will be shown by default in the drop down menu from which you have to choose a section for the article. It doesn’t mean that your site will open in that section. So what you are viewing is the home page, which is the default section, that’s why it says ‘default’.
Offline
#3 2006-06-26 22:28:01
- tdskate
- New Member
- Registered: 2006-06-15
- Posts: 7
Re: default section_title
I get it, but then why won’t this work?
<code>
<txp:if_section name=“default”>
News
<txp:else />
<txp:section title=“1” />
</txp:if_section>
</code>
it just keeps displaying “default”
(edited to show code. -Els)
Last edited by els (2006-06-26 22:37:14)
Offline
#4 2006-06-26 22:38:33
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: default section_title
Use name="" (empty quotes) instead of name="default".
(How do I post tags and code on the forum?)
Last edited by els (2006-06-26 22:41:47)
Offline
Pages: 1