Blog Sections Open

Using includeDocs Correctly in Wayfinder

Wayfinder can include specific resources manually through includeDocs , but that does not mean the result will automatically match your menu depth assumptions. The original case came from a resource that appeared as if i

Wayfinder can include specific resources manually through includeDocs, but that does not mean the result will automatically match your menu depth assumptions. The original case came from a resource that appeared as if it belonged to another level entirely.

Typical Call

[[Wayfinder?
 &level=`3`
 &ignoreHidden=`1`
 &includeDocs=`48`
 &startId=`0`
]]

What to Remember

  • includeDocs forces documents into the result set
  • the rendered position still depends on tree structure and template logic
  • depth rules and branch rules should be reviewed together

If a menu item appears in the wrong place, first check the actual document tree, then the Wayfinder parameters, and only then the chunk markup. In many cases the menu is doing exactly what the tree tells it to do.

Newer post

Troubleshooting eForm Attachments That Never Reach the Inbox

A practical checklist for eForm submissions where the email sends but file attachments never arrive.

Older post

Adding a Simple Captcha Validator to FormIt

A compact FormIt pattern for generating a small custom captcha challenge and validating it through a custom validator.