heres hoping i understood the assignment correctly. I assumed this issue's purpose was to add a functionality to share a link to students, teachers etc, but limit what they can see and navigate through.
I added a functionality to the nav that renders the nav differently depending on the nav query.
example: ?nav=programme will render the closest parent with a type of programme, and its children.
if no nav param is present it defaults to only show the current page and its children.
update: added a context that can be used in the tree. some funny monkeybusiness happened when i tried to use props bubbling down. +layout now takes care of setting the "render by type"
heres hoping i understood the assignment correctly. I assumed this issue's purpose was to add a functionality to share a link to students, teachers etc, but limit what they can see and navigate through.
I added a functionality to the nav that renders the nav differently depending on the nav query. example: ?nav=programme will render the closest parent with a type of programme, and its children. if no nav param is present it defaults to only show the current page and its children.