Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Is this possible ... and how?
Oops … it does work now … :)
Maincode:
<txp:if_section name="medewerkers">
<txp:if_article_list>
<txp:if_category name="staf,administratie,assessoren,taalleertoetsen">
<!-- one of the category pages -->
<txp:article form="singlenolinknodate" limit="20" sort="position asc" />
<txp:else />
<!-- section landing page -->
<txp:article_custom section='<txp:section />' category="staf" form="singlenolinknodate" limit="20" sort="position asc" />
</txp:if_category>
</txp:if_article_list>
</txp:if_section>
Nav (sidebar):
<h4>Medewerkers:</h4>
<txp:if_section name="medewerkers">
<txp:category_list categories="staf,administratie,assessoren,taalleertoetsen" wraptag="ul" break="">
<txp:if_first_category>
<li<txp:if_category name='<txp:category />'> class="active"<txp:else /> <txp:if_category><txp:else /><txp:if_article_list> class="active"</txp:if_article_list></txp:if_category></txp:if_category>><txp:category title="1" link="1" this_section="1" /></li>
<txp:else />
<li<txp:if_category name='<txp:category />'> class="active"</txp:if_category>><txp:category title="1" link="1" this_section="1" /></li>
</txp:if_first_category>
</txp:category_list>
</txp:if_section>
And now I’ll have to study the code … thanks Els!
Last edited by RedFox (2010-10-07 03:28:36)
Offline