I’m wondering if it is possible with the autonav block to make pages that don’t work as a link nor show up in the sitemap or the URL. I want to make a menu with topics, once you click on a topic you go deeper in the menu with links that work. The sitemap/menu should look like this:
The (no link) items should just be placeholders for the navigation, without showing the page in the sitemap or URL to sub-pages.
Home
Topic 1 (no link)
– Sub Item 1
– Sub Item 2
– Sub Item 3
Topic 2 (no link)
– Sub Item1
– Sub Item2
– Sub Item3
Contact
I realize I can make a custom menu instead, but I still want to use the autonav to list the pages beneath a topic so I still need to make a parent page that does not get listed in the sitemap or URL.
there is a built in attribute you can use for this.
Replace Link with First in Nav
Used by: Autonav
Handle: replace_link_with_first_in_nav
Type: checkbox
When installed, added, and activated for a particular page, and that page is linked to using the Auto-Nav, the parent page will not be linked to. Instead, the page with the lowest display order under the parent page will be linked to instead. (e.g. Click on “Locations” in a navigation, and actually link to “/locations/first-location” instead.
I’m not sure how this is helping my situation. This will simple force a link to ‘sub item 1’ when clicked on ‘topic 1’. That is not what I want at all. It does not solve any of the two problems I have.
You could use a template we made for a site with the Elemental theme with a horizontal responsive autonav menu in the header. See https://dancestudiomaya.ch - first link (dead) «dance&rituals»