Skip to main content

Timeline for Conditional secondary menus

Current License: CC BY-SA 4.0

7 events
when toggle format what by license comment
Jun 19, 2021 at 0:44 comment added bosco Having thought a little bit more on it, I think it would be plausible to create something like the Template Hierarchy for nav menus - attempt to load conventionally identified secondary menus corresponding to the query and "queried object," and fall back to more general menus when it is not available.
Jun 18, 2021 at 23:51 comment added bosco Oh, I missed that! If you can come up with some sort of mapping that could be created programmatically (e.g. on all pages, the page with the slug page-{identifier} maps to the menu secondary-menu-{identifier} - or the page with the slug {page slug} uses the menu menu-page-{page slug}), I can totally add an example for that use-case
Jun 18, 2021 at 23:34 vote accept Vinz Clortho
Jun 18, 2021 at 23:33 comment added Vinz Clortho Thanks for the reply! I am considering what is the best solution for my situation. I was hoping to find a solution that would avoid having to manually link page-slug-> menu , but I accept your answer because it is an interesting idea.
Jun 16, 2021 at 15:55 history edited bosco CC BY-SA 4.0
added 45 characters in body
Jun 16, 2021 at 15:37 history edited bosco CC BY-SA 4.0
added 45 characters in body
Jun 16, 2021 at 15:31 history answered bosco CC BY-SA 4.0