Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-06-09 12:46:06

dimfish
Member
Registered: 2006-06-01
Posts: 72

Achieving 2 level nav

Hi,

I have sticky articles (all given category ‘about’) posted to a particular section (‘ReefDoctor’), and in my page I am displaying a linked list of all article titles in the ‘about’ category when the ReefDoctor section is active (as a second level of navigation) as shown here
(clearly nothing styled up yet…)

I have done it by having in my page:<code>
<ul>
<txp:article_custom form=“headline” category=“about” status=“sticky” />
</ul></code>

…but obviously there is the bit category=“about” that is ‘hardcoded’ within the page … so to do this for other sections I need to create a different page for each section. Is there a way I can acheive what I want without using mulitiple pages?

I ultimately want to acheive one level of static site navigation, and a second level of section-sensitive navigation (can I do this with Section > Category?….what’s the easiest way to do this…is is ako_nav plugin? I can’t get that to work…..)

Getting a bit frustrated getting out of the starting blocks with TXP : ( so all guidance very gratefully received!

Thanks.

Offline

#2 2006-06-09 20:32:28

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,393
Website GitHub Mastodon

Re: Achieving 2 level nav

You can use txp:if_section to include certain parts of your page template for various sections.

Offline

Board footer

Powered by FluxBB