Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2011-01-02 22:25:46
- Alweb
- Member
- Registered: 2010-10-08
- Posts: 25
Permanent link mode
Hello everyone,
I have a problem that i can’t resolve at myself. I hope someone will help me… :-)
I always use this permanent link mode: /section/title/
and in my Presentation > Pages:
(using glx_if
)
<txp:glx_if_frontpage>
<h1>Elektrische fietsen</h1>
<p>Text...</p>
<txp:else />
<txp:glx_if_section_frontpage>
<txp:article >
<h1><txp:title/></h1>
<txp:body />
</txp:article>
</txp:glx_if_section_frontpage>
<txp:if_individual_article>
<txp:article >
<h1><txp:title/></h1>
<txp:body />
</txp:article>
</txp:if_individual_article>
</txp:glx_if_frontpage>
Now I want to use permanent link mode: /title/
But the above code doesn’t works with /title/ as permanent link mode.
Thanks for your reactions,
Alweb
Offline
Re: Permanent link mode
I don’t think glx_if is compatible with <txp:else />
. (It is a very old plugin.)
Consider soo_if_frontpage as an up-to-date alternative.
Code is topiary
Offline
#3 2011-01-03 17:14:34
- Alweb
- Member
- Registered: 2010-10-08
- Posts: 25
Re: Permanent link mode
Thank u for your tip jsoo.
Permanent link mode: /section/title/ and the code that I send is working. But hou can I get a working code with permanent link mode: /title/?
Offline
Re: Permanent link mode
The section information is still available even in /title mode, because every article belongs to one and only one section. So you can still use tags such as if_section
.
Code is topiary
Offline
#5 2011-01-03 20:04:12
- Alweb
- Member
- Registered: 2010-10-08
- Posts: 25
Re: Permanent link mode
Problem resolved. Thanks for your reaction jsoo!
Offline
Pages: 1