We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31039
    • 49 Posts
    If i use:
    [[Wayfinder? &startId=`0`]] 
    things work perfectly well, but what i want to do is limit the menu to three given items 6 8 and 9.


    To this end i’ve been trying
    [[Wayfinder? &includeDocs=`5,7,8`]] 
    but this results in following error - any ideas?

    « MODx Parse Error »
    MODx encountered the following error while attempting to parse the requested resource:
    « Execution of a query to the database failed - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') GROUP BY sc.id ORDER BY sc.menuindex ASC' at line 1 »
          SQL: SELECT DISTINCT sc.id, sc.menutitle, sc.pagetitle, sc.introtext, sc.menuindex, sc.published, sc.hidemenu, sc.parent, sc.isfolder, sc.description, sc.alias, sc.longtitle, sc.type,if(sc.type='reference',sc.content,'') as content, sc.template, sc.link_attributes FROM `caye_finance`.modx_site_content sc LEFT JOIN `caye_finance`.modx_document_groups dg ON dg.document = sc.id WHERE sc.published=1 AND sc.deleted=0 AND (sc.privateweb=0) AND sc.hidemenu=0 AND sc.id IN (5,7,8) AND sc.id IN () GROUP BY sc.id ORDER BY sc.menuindex ASC ;
          [Copy SQL to ClipBoard]
     
    Parser timing
      MySQL: 	0.0047 s	(4 Requests)
      PHP: 	0.0780 s	 
      Total: 	0.0827 s
      • 15987
      • 786 Posts
      the startId is required even if using IncludeDocs or ExcludeDocs.
        • 31039
        • 49 Posts
        Thanks it’s working perfectly now - great when you know how! grin

        		<ul>
        		<li id="dropmenu"><a name="dropmenu"></a><h2>Links:</h2>
        			[[Wayfinder? &startId=`0` &includeDocs=`5,7,8` ]]
        		</li>
        		</ul>