Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-12-11 02:25:33

ploinkr
Member
From: Montreal
Registered: 2007-12-06
Posts: 83

Elaborate menu

Hi,

I’m currently porting a “static” website to textpattern and I’m having problems figuring out how to output a menu that groups articles by category, then shows a list (titles) of articles associated with it. I’ve looked at the category_list tag – which I’m afraid is too basic – and then plugins such as adi_menu – which I’m not sure could do it either.

For the sake of clarity, here’s a screenshot of what I’m trying to achieve. If anyone can point me in the right direction, I’d be much grateful.
Thanks.

Offline

#2 2009-12-11 04:12:46

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: Elaborate menu

I think you should be looking at:

<txp:section /> – this will output your section name

<txp:category_list /> – this should list your categories, whichever you specify in that order

<txp:article_custom /> – article custom is the one you want for outputting a list of articles related to a category/section

Fixed links -Gocom

Last edited by Gocom (2009-12-11 04:35:15)

Offline

#3 2009-12-11 10:57:00

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Elaborate menu

I guess you want something like this:

<txp:category_list wraptag="ul" break="li" > 
  <txp:category title="1" link="1" />
  <txp:article_custom category='<txp:category />' wraptag="ul" break="li">
    <txp:permlink><txp:title /></txp:permlink>
  </txp:article_custom>
</txp:category_list>

Offline

#4 2009-12-11 19:19:46

ploinkr
Member
From: Montreal
Registered: 2007-12-06
Posts: 83

Re: Elaborate menu

tye, Els,
Thank you; I will try that tonight and report back.
Best,
Ben

Offline

Board footer

Powered by FluxBB