Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2008-06-20 16:00:33
- dickybooboo
- New Member
- Registered: 2008-06-14
- Posts: 3
Linking to sections
Hi everyone,
I am trying to create a navigation system for my site by creating links to the sections using a <a href”<*txp tag here*>”>Link Name</a> tag. I’ve noticed that a lot of people just use a format such as href=”/SectionName”. However this does not work for my local testing because I’m using the messy URL. Is there a specific TXP tag that could be used inside the href”“ property so that I can link to my sections?
I figured out that I could use for example: <li><txp:section link=“1” name=“default” /></li>, but that would display the text “default” with a link to the home page, and I want it to say “home”.
thank you very much,
Offline
Re: Linking to sections
Hi dickybooboo
Try:
<li><txp:section name="default">Home</txp:section></li>
Offline
#3 2008-06-20 16:10:49
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: Linking to sections
Even easier and updated automatically with section_list: <txp:section_list break="li" wraptag="ul" />
Exclusions can be done with exclude="section1,section2"
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#4 2008-06-20 16:18:49
- dickybooboo
- New Member
- Registered: 2008-06-14
- Posts: 3
Re: Linking to sections
Thank you Julián & Uli, I’ll give both suggestions a try.
Offline
Pages: 1