Textpattern CMS support forum

You are not logged in. Register | Login | Help

#21 2012-03-01 17:34:30

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: [howto] Nested category->sub-category->article menu

No, the solution is pretty simple. It only looks complicated because of the repetition of the same elements for every level. Just do it :)

I used it here advokathamburg.de (navigation in left sidebar) and even I understood the data flow.


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#22 2012-08-22 09:31:47

husainhk
Member
From: Dubai, UAE
Registered: 2007-08-12
Posts: 105
Website

Re: [howto] Nested category->sub-category->article menu

Hey Markus … I too need a multi-level category menu, but without articles, just like your implementation on http://advokathamburg.de/. Care to share the code needed for this? Thanks so much!

Offline

#23 2012-08-22 09:35:14

husainhk
Member
From: Dubai, UAE
Registered: 2007-08-12
Posts: 105
Website

Re: [howto] Nested category->sub-category->article menu

Ignore me … Sorry, just saw the note on TXP Tips, on what to do when no articles are required :-)

Offline

#24 2014-01-22 21:40:38

etc
Developer
Registered: 2010-11-11
Posts: 3,201
Website

Re: [howto] Nested category->sub-category->article menu

element wrote #258592:

Isn’t there a simpler solution? Seems awfully complicated.

Before I forget this dirty hack:

<!-- tree form -->
<txp:category title="1" />
<txp:category_list parent='<txp:category />' exclude='<txp:category />' children="0" wraptag="ul" break="li">
	<txp:php>echo parse(fetch_form('tree'));</txp:php>
</txp:category_list>

<!-- nested menu -->
<txp:category_list children="0" wraptag="ul" break="li" form="tree" />

etc_[ query | search | pagination | date | tree | cache ]

Offline

Board footer

Powered by FluxBB