currentCrumbTpl
Last updated Oct 8th, 2019 | Page history | Improve this page | Report an issue
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$301 per month—let's make that $500!
Learn moreBreadCrumb's currentCrumbTpl Chunk¶
This is the chunk displayed with the ¤tCrumbTpl property on the BreadCrumb snippet. Used for the current crumb.
Default Value¶
Since BreadCrumb 1.3.0, currentCrumbTpl is no longer a chunk but a snippet property. Templates properties can be chunk name, file path (@FILE:) or chunk code (@CODE:)
<li>[[+pagetitle]]</li>
Available Placeholders¶
Name | Description |
---|---|
link | A link to the resource of the crumb. |
position | The order of the item (to support BreadcrumbList. |
useWebLinkUrl | If you use the &useWebLinkUrl=1 property, the link will be the resource linked and |
id pagetitle longtitle description menutitle ... | All properties of the resource are output to their appropriate placeholders. |
Examples¶
By default the current crumb isn't a link but it's very easy to change that. Replace the chunk by :
<li><a href="[[+link]]">[[+pagetitle]]</a></li>