In the latest wayfinder, includeDocs is completely ignored!
[[Wayfinder? &startId=`0` &level=`3` &includeDocs=`SELECT `id` FROM `modx_site_content` WHERE `isfolder` <> ’0’ AND id < ’371’` &outerTpl=`menuContainer` &rowTpl=`menuRows`]]
[[Wayfinder? &startId=`0` &level=`1` &includeDocs=`SELECT `id` FROM `modx_site_content` WHERE id >= ’371’` &outerTpl=`navleftContainer` &rowTpl=`navleftRows`]]
I need to deliver the site monday, I hope someone can fix this.
I was able to fix it by using
&excludeDocs=`SELECT `id` FROM `modx_site_content` WHERE `isfolder` = ’0’ OR id > ’371’`
I don’t really understand why includeDocs is removed as the logic to use for excluding is more complex, with OR instead of AND, it feels less natural to me. Anyway if someone gets this error you can work around it by using excludeDocs and write your query for the opposite selection.
I also noticed that includeDocs is not in the docs so I assume it’s being removed. Although you can achieve the same results with both sometimes it’s just easier to specify what should be included vs what should be excluded IMHO.
It’s definitely there; this seems to be a bug.
shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect |
github |
splittingred.com
includeDocs is also not mentioned in the docs