I have two snippets of code:
{categories show="not 1|2|3|4|5|6|7" show_group="1"}
<li><a href="http://{path=mypage}">{category_name}</a></li>
{/categories}and
{exp:channel:categories channel="projects" show="not 1|2|3|4|5|6|7" category_group="1" style="linear"}
<li><a href="http://{path=mypage}">{category_name}</a></li>
{/exp:channel:categories}The first block of code is within the channel:entries tag. The show=“not” restricts the categories that are shown to not include the ones I specify. This still allows their children to show up.
The second block of code, if I restrict those same categories, all their children also no longer show up.
This is probably expected behavior but it feels strange and inconsistent. How can I restrict a particular category from showing up when listing all my categories while still allowing that category’s children to show up (as I get from the first code’s output)?
The reason I’m not showing those particular categories is that they are for grouping and not for front-end users to be able to interact with.
Thanks