I have a scenario where I want 3 levels to show in my main menu, except for one specific level 2 page where I don't want to show its children.
Using hard-coded IDs works fine, eg: {exp:structure:nav start_from="/" show_depth="3" exclude="100|101|102" }
But when I replace the hard coded IDs with the structure tag that generates these IDs, it doesn't work: {exp:structure:nav start_from="/" show_depth="3" exclude="{structure:child_ids_for:14}" }
Anyone have any ideas? I've also tried using snippets and and embedded template and neither work, though a snippet does work when the hard-coded IDs are in the snippet, just not when {structure:child_ids_for:5} is in the snippet.
Here's the code I've tried using embeds:
In the header:
{embed="embeds/main_menu" hideStudentPages="{structure:child_ids_for:14}"}
In the embed:
{exp:structure:nav start_from="/" show_depth="3" include_ul="no" add_level_classes="yes" show_overview="yes" exclude="{embed:hideStudentPages}" }Thanks in advance, Justin