First of all, thank you for this great module!
I tried to use Hansel with Token module - everything works perfectly, except cases when Token return NULL or empty string.
In such cases, the breadcrumb looks like
Home >> >> Some Category >> Some Page
Example of rules set:
start
-add link Home with path < front >
.goto first rule
first rule
-switch on url argument 1
--admin
..leave (restore original breadcrumbs)
--node
..add link [parent-menu-raw] with path [parent-menu-link]
..goto second rule
second rule
-add link [title-raw] with path < none >
..leave
(where [parent-menu-raw] is custom token which return unfiltered text used in the parent menu as title)
BTW, "second rule" is solutions for "no link" on the last item in the breadcrumb issue for version 1.0, which is solved in the last dev version.
Comments
Comment #1
denis_sle commentedthe module is very flexible, I've found the temporary solutions for this issue:
just to add one more rule with "php" switch, where we check value of token, and if it's empty - goto "second rule" without adding empty link.
Comment #2
mauritsl commentedFixed in Hansel 1.1. Links with an empty title are not added to the output anymore.