Tried it and get a sql syntax error returned
this is the call:
[[Wayfinder? &startId=`3` &level=`1` &sortBy=`pagetitle` &sortOrder=`asc` &parentClass=`hide` &parentRowTpl=`cssplay_parentRow` &outerTpl=`cssplay_outer` &innerTpl=`cssplay_inner` &rowTpl=`cssplay_row` &outerClass=`menu` &cssTpl=`cssplay_flyout`&excludeDocs=`[!getTVList? &tv=`itemTags` &str=`Food,Walks`!]`]]
the tv is itemTags
the tags are Food,Walks,Places,Musea
snippet like suggested getTVList
error:
« 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 '[!getTVList)) AND sc.id IN (25) GROUP BY sc.id ORDER BY sc.pagetitle 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 `pianoquartet`.`site_content` sc LEFT JOIN `pianoquartet`.`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 NOT IN ([!getTVList)) AND sc.id IN (25) GROUP BY sc.id ORDER BY sc.pagetitle ASC ;
[Copy SQL to ClipBoard]
Parser timing
MySQL: 0.0076 s (3 Requests)
PHP: 0.1544 s
Total: 0.1620 s
And this redundant method I am trying, is because I cant seem to find or figure out a way to filter document from the tree to include or exclude them from the menu. Thanks for this script.
frank