<![CDATA[ Wayfinder IncludeDocs parameter is breaking the snippet? - My Forums]]> https://forums.modx.com/thread/?thread=94763 <![CDATA[Wayfinder IncludeDocs parameter is breaking the snippet?]]> https://forums.modx.com/thread/94763/wayfinder-includedocs-parameter-in-modx-is-breaking-the-snippet#dis-post-513170
To do this, I have used the includeDocs parameter.

[[Wayfinder? &startId=`0` &includeDocs=`17,18,19,20`]]

When I do this, I get no output at all. Remove includeDocs and I get the standard nav (expected). Use the param and the output is completely empty.

No idea what I'm doing wrong or what (if any) other setting must be defined in order to make this work.]]>
djad33 Oct 22, 2014, 07:11 AM https://forums.modx.com/thread/94763/wayfinder-includedocs-parameter-in-modx-is-breaking-the-snippet#dis-post-513170
<![CDATA[Re: Wayfinder IncludeDocs parameter is breaking the snippet?]]> https://forums.modx.com/thread/94763/wayfinder-includedocs-parameter-in-modx-is-breaking-the-snippet#dis-post-515730
&excludeDocs=``
if nearby resources is not so much.
And maybe useful
&ignoreHidden=`1`
to mark them in "Hide From Menus"]]>
alex_dutch Nov 26, 2014, 10:21 PM https://forums.modx.com/thread/94763/wayfinder-includedocs-parameter-in-modx-is-breaking-the-snippet#dis-post-515730
<![CDATA[Re: Wayfinder IncludeDocs parameter is breaking the snippet?]]> https://forums.modx.com/thread/94763/wayfinder-includedocs-parameter-in-modx-is-breaking-the-snippet#dis-post-513317 djad33 Oct 23, 2014, 03:58 PM https://forums.modx.com/thread/94763/wayfinder-includedocs-parameter-in-modx-is-breaking-the-snippet#dis-post-513317 <![CDATA[Re: Wayfinder IncludeDocs parameter is breaking the snippet?]]> https://forums.modx.com/thread/94763/wayfinder-includedocs-parameter-in-modx-is-breaking-the-snippet#dis-post-513307
&where=`1=1 OR sc.id IN (17,18,19,20)`

to the snippet call. Untested.]]>
Jako Oct 23, 2014, 03:15 PM https://forums.modx.com/thread/94763/wayfinder-includedocs-parameter-in-modx-is-breaking-the-snippet#dis-post-513307
<![CDATA[Re: Wayfinder IncludeDocs parameter is breaking the snippet?]]> https://forums.modx.com/thread/94763/wayfinder-includedocs-parameter-in-modx-is-breaking-the-snippet#dis-post-513293
I ended up having to create a series of Wayfinder calls in order to display the elements desired.]]>
djad33 Oct 23, 2014, 02:19 PM https://forums.modx.com/thread/94763/wayfinder-includedocs-parameter-in-modx-is-breaking-the-snippet#dis-post-513293
<![CDATA[Re: Wayfinder IncludeDocs parameter is breaking the snippet?]]> https://forums.modx.com/thread/94763/wayfinder-includedocs-parameter-in-modx-is-breaking-the-snippet#dis-post-513198 chrischerrett Oct 22, 2014, 11:36 AM https://forums.modx.com/thread/94763/wayfinder-includedocs-parameter-in-modx-is-breaking-the-snippet#dis-post-513198 <![CDATA[Re: Wayfinder IncludeDocs parameter is breaking the snippet?]]> https://forums.modx.com/thread/94763/wayfinder-includedocs-parameter-in-modx-is-breaking-the-snippet#dis-post-513188
if ($this->_config['includeDocs']) {
	$menuWhere .= " AND sc.id IN ({$this->_config['includeDocs']})";
}


Additional resources could not be added this way.

Anyway, since you are using &startId=`0`, the resorces 17, 18, 19, 20 should be shown, but only if they are not hidden from the menu.]]>
Jako Oct 22, 2014, 10:38 AM https://forums.modx.com/thread/94763/wayfinder-includedocs-parameter-in-modx-is-breaking-the-snippet#dis-post-513188
<![CDATA[Re: Wayfinder IncludeDocs parameter is breaking the snippet?]]> https://forums.modx.com/thread/94763/wayfinder-includedocs-parameter-in-modx-is-breaking-the-snippet#dis-post-513180 additional elements? It appears to me that this will limit the results to 17,18,19,20, if 17,18,19,20 appear in the original dataset.

/* if set, limit results to specific resources */
if (!empty($this->_config['includeDocs'])) {
  $c->where(array('modResource.id:IN' => explode(',',$this->_config['includeDocs'])));
}


Only those resources which are in both are returned. I might be wrong, as this was just a quick glance, but this would explain it.]]>
chrischerrett Oct 22, 2014, 09:03 AM https://forums.modx.com/thread/94763/wayfinder-includedocs-parameter-in-modx-is-breaking-the-snippet#dis-post-513180