We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20441
    • 4 Posts
    Hi all,

    I’m using two menus on our website, a main menu and a menu for specific information. This second menu has so far only show pages that were directly under the parent. Now I want to show pages that are not directly under the parent. Here I’m stuck.
    At the same time, I would like to make it possible that this menu can display pages of the entire site (makes it parent = `0`)

    SITE (0)
      PARENT  (24)
        PAGE (212)
          SUBPAGE (25)
          SUBPAGE (26)
          SUBPAGE (27)
          SUBPAGE (28)
        PAGE (29)
          SUBPAGE (135)
          SUBPAGE (136)
          SUBPAGE(137)
        PAGE (207)
          SUBPAGE (294)
          SUBPAGE (295)
          SUBPAGE (296)
          SUBPAGE (297)
          SUBPAGE (298)
          SUBPAGE (299)
          SUBPAGE (300)
          SUBPAGE (337)
        PAGE (30)
          SUBPAGE (271)
          SUBPAGE (315)
          SUBPAGE (197)


    Works:
    [!Wayfinder? &startId=`24` &includeDocs='212', '29', '207', '30' &sortBy=`longtitle` &rowClass=`gerichte_info_menu_item` &level=`1` &limit=`7`!] 
    

    Doesn’t work:
    [!Wayfinder? &startId=`24` &includeDocs='35', '125', '36' &sortBy=`longtitle` &rowClass=`gerichte_info_menu_item` &level=`1` &limit=`7`!] 


    The last part of code returns me the correct pages when I add the debug-parameter, but doesn’t show them on the site.


    Thanks for the help
      • 10313
      • 375 Posts
      Although I do not exactly understand your question, I can tell you that there is a mistake in your Wayfinder call:

      [tt]&includeDocs=’35’, ’125’, ’36’[/tt]

      should be [tt]&includeDocs=`35,125,36`[/tt]

      Backticks around all the IDs together instead of single quotes around each single ID.
        • 20441
        • 4 Posts
        Thought of that, but it makes no difference.


        In short (hope it makes more sense):
        Problem: displaying single pages/menu-titles with includeDocs in a menu not direclty a child of the parent with the use of wayfinder.
          • 10313
          • 375 Posts
          When I have two "main" menus (e.g. main menu for content and a service menu with credits, search, sitemap, contact and so on), then I create two containers in the menu structure.

          root
           -- main menu
           -- service menu


          Thus, I can call each menu with an individual Wayfinder call. If I understand you correctly, you could create web-links to the documents that should be shown in your secondary menu structure. These weblinks are placed in "service menu" and are links to documents/ressources in the main menu structure.

          Am I right?
            • 20441
            • 4 Posts
            That could be a solution. But it doesn’t solve the problem with wayfinder not showing child of childs from the parent you define.

            It shouldn’t matter for SEO, if they’re excluded from every sitemap/google bot etc.
            If there’s no other possibility, then I can use the weblinks ofc.

            Thanks already!