Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2012-11-27 19:59:21

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 811
Website

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

#2 2012-11-27 20:36:08

Dragondz
Moderator
From: Algérie
Registered: 2005-06-12
Posts: 1,547
Website GitHub Twitter

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

#3 2012-11-27 22:39:47

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 811
Website

Re: How to write raw url's to sections?

Thanks Rabah … :)

Offline

Board footer

Powered by FluxBB