Reversed Breadcrumbs
-
I’ve been playing with code for breadcrumbs. The example given in the documentation is:
[loop child=this include=this] [if not first] > [/if][field title] [/loop]I modified it to:
[loop child=this include=this] [if not first] > [/if][if not last][field title-link][else][field title][/if] [/loop]in order to make the current page not a link.
However, when experimenting with the layout of the breadcrumbs, I found something strange. I modified it to:
[loop child=this include=this]
[if not first]
> [if not last][field title-link][else][field title][/if]
[/loop]and oddly, the item which was not a link was the first one, not the last. It doesn’t seem to make sense, but that’s what happened. Anyone have an idea why?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Reversed Breadcrumbs’ is closed to new replies.