Level of recursivity ?
bricebou opened this issue · comments
Hi,
First of all, thnaks for your plugin :)
But I am wondering if there is a simple way to limit the number of children ? I've checked your code but I'm not a developper :/
I'd like to show only the index.md in the menu and not all of the "articles" : I have that type of structure :
content --> Stuff --> Linux ---> index.md
---> cccc.md
--> LaTeX ---> index.md
---> bbb.md
I'd like to have an entry Stuff and it's direct children (Linux and LaTeX) but not the cccc.md and bbb.md.
I can add a metadata to filter eventually but I don't see how to get that information inside your plugin...
Thnanks in advance for your help.
Hi,
I've been able to do what I wanted : I don't have reduce the level of recursivity but I have added a rule to exclude pages that don't have the meta "Template" set to "category" except for some pages.
You can see that here : https://github.com/bricebou/pico-navigation/blob/master/at_navigation.php
on lines 130-135.
Thanks for your plugin :)