Breadcrumb snippet

By Joshua Lückers (joshualuckers)

This snippet support most of jaredc/splittingred's BreadCrumbs features :

  • maxCrumbs
  • pathThruUnPub (now as showUnPub)
  • respectHidden (now as showHidden)
  • showCrumbsAtHome
  • showCurrentCrumb
  • showHomeCrumb

And add new features :

  • chunk as templates (properties &containerTpl, ¤tCrumbTpl, &linkCrumbTpl, &maxCrumbTpl)
  • breadcrumb for and from specific resource (property &from and &to)
  • direction (property &direction)
  • showContainer property
  • useWebLink property
  • scheme property

Some features of jaredc/splittingred's BreadCrumbs are missing but easily can be replaced by chunk / CSS customization, as :

  • crumbSeparator
  • currentAsLink
  • descField
  • homeCrumbDescription
  • homeCrumbTitle
  • maxDelimiter
  • titleField

Github : https://github.com/JoshuaLuckers/BreadCrumb

Support/Comments : https://community.modx.com/c/support/extras

Joshua Lückers

New in BreadCrumb 1.4.4

BreadCrumb 1.4.4-pl

Added placeholder to support schema.org/BreadcrumbList thanks to John Cocula (watou)

BreadCrumb 1.4.3-pl

Fix a showHomeCrumb bug when home is unpublished or deleted

BreadCrumb 1.4.2-pl

Fix a dependency bug. getResource package is no longer needed.

BreadCrumb 1.4.1-pl

Fix currentCrumbTpl bug

BreadCrumb 1.4.0-pl

Simplify home crumb usage. Now, the &showHomeCrumb=1 property adds the home crumb at the start of breadcrumb and &showHomeCrumb=0 hides it if present.Add &exclude property to exlude one or many resources from breadcumbTpl @CODE no longer supported. Use @INLINE instead.&resourceId no longer supported. Use &to property instead

BreadCrumb 1.3.2-beta1

Add categoryCrumbTpl

BreadCrumb 1.3.1-pl

Add test to check if the function processTpl is already defined

BreadCrumb 1.3.0-pl

BreadCrumb snippet now works with property sets

Default templates chunks removed and replaced by properties

BreadCrumb 1.2.0-pl

Add &scheme property to define modx links scheme

BreadCrumb 1.1.0-pl

Add properties &from and &to to generate breadcrumb between to specific resources

BreadCrumb 1.0.0-pl

Public Launch

BreadCrumb 1.0.0-beta3

Add useWebLinkUrl property

BreadCrumb 1.0.0-beta2

Fix current resource checking when resourceId property specified

BreadCrumb 1.0.0-beta1

Initial Version



October 1, 2019
Supported Versions
2.6 – Current