Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-04-06 22:57:04
- Marty
- New Member
- Registered: 2006-03-30
- Posts: 7
menus, submenus and good designs???
Hi
I have a list of article titles that display if they are part of the category specified, the list shows titles which link to individual article in that category. And this list shows up on the same page. Here is the code.
<code>
<txp:article_custom form=“MainMenuList” category=“MainMenuList” section=”“ sortby=“Title” sortdir=“asc” />
<txp:article form=“home” sortdir=“asc” sortby=“Title” limit=“1” />
</code>
I also want to have an other list of articles to showup below the the first list, but i only want this article list to show up if one of the articles from the list above is clicked on. So if some body clicks on article 3 in first list i want to display the second list. and the the article.
second article list
<code>
<txp:article_custom form=“AboutMenuList” category=“AboutMenuList” section=“Home” sortby=“Title” sortdir=“asc” />
</code>
I was hoping i could get this with only two Article Categories. So that when some body else adds or changes any article the menus will automaticly update them self. Any suggestions?
thanks
Offline
#2 2006-04-09 20:20:43
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: menus, submenus and good designs???
Try something like
<code>
<txp:if_individual_article>
<txp:article_custom form=“AboutMenuList” category=“AboutMenuList” section=“Home” sortby=“Title” sortdir=“asc” />
<txp:article form=“home” sortdir=“asc” sortby=“Title” limit=“1” />
<txp:else />
<txp:article_custom form=“MainMenuList” category=“MainMenuList” section=”“ sortby=“Title” sortdir=“asc” />
</txp:if_individual_article>
</code>
Last edited by els (2006-04-09 20:21:46)
Offline
Pages: 1