Breadcrumb navigation with Wayfinder

From MODx Wiki
Jump to: navigation, search


<a href="[~[(site_start)]~]" title="[(site_name)]">Home</a> &raquo; [!Wayfinder? &startId=`0` &titleOfLinks=`menutitle` &outerTpl=`BreadCrumbOuter` &rowTpl=`BreadCrumbRow` &activeParentRowTpl=`BreadCrumbActiveParentRow` &hereTpl=`BreadCrumbHere` !]

BreadCrumbOuter: [+wf.wrapper+]

BreadCrumbRow: empty !important: Do not leave template field untouched, press spacebar on your keyboard. Otherwise it will not work.

BreadCrumbActiveParentRow: <a href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a> &raquo; [+wf.wrapper+]

BreadCrumbHere: [+wf.linktext+]


NOTE: As an alternative to using a space for BreadCrumbRow, you can create another chunk that is fully blank and insert that chunk into BreadCrumbRow. The only requirement is that BreadCrumbRow cannot be completely empty.

Personal tools