Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
How to write raw url's to sections?
I’ve pushed the wrong button and now I’ve lost the code in my nav form … it’s something like this >
<ul id="nav">
<li class="home"><txp:link_to_home><txp:site_name /></txp:link_to_home><span>|</span></li>
<li class="recent"><a href="?s=section&=recent">recent posts</a><span>|</span></li>
<li class="archive"><a href="?s=section&=archive">archive</a></li>
</ul>
… but the raw url’s are wrong and I’m not a PHP dev … what are the raw url’s to those two sections?
Offline
Re: How to write raw url's to sections?
maybe this one: (I suppose you have 2 sections: recent and archive)
<ul id="nav">
<li class="home"><txp:link_to_home><txp:site_name /></txp:link_to_home><span>|</span></li>
<li class="recent"><a href="?s=recent">recent posts</a><span>|</span></li>
<li class="archive"><a href="?s=archive">archive</a></li>
</ul>
or this one is better:
<ul id="nav">
<li class="home"><txp:link_to_home><txp:site_name /></txp:link_to_home><span>|</span></li>
<li class="recent"><txp:section name="rencent">recent posts</txp:section>><span>|</span></li>
<li class="archive"><txp:section name="archive">archive</txp:section></li>
</ul>
Last edited by Dragondz (2012-11-27 20:38:14)
Offline
Re: How to write raw url's to sections?
Thanks Rabah … :)
Offline
Pages: 1