Breadcrumb Overrides
Posted
#5296
(In Topic #1067)
The issue is, it seems I have to define an override for each page within the help zone to get the breadcrumbs to show accurately. This isn't required for the forum zone (as forums, topics, posts, etc all show as children of home:forum in the breadcrumbs by default), so why is it required here? Or am I just doing something wrong?
Code
<substitution match_key="help:">
<span label="{!HOME}">:</span>
</substitution>That shows the help zone as a child of "home", as expected. But, without defining an override for each page within the zone, the breadcrumbs don't even show on pages within the help zone, UNLESS I remove {+START,IF,{$IN_STR,{$BREADCRUMBS},<a }} from GLOBAL_HTML_WRAP, but then it only shows the current page's title and doesn't show the "home" or "help" links.
So either way I'm having to create an override for each page. What am I doing wrong?
Last edit: by Joe
Posted
I have a page called "refunds" within my "help" zone. Currently, without any modifications to the system (any breadcrumb overrides or removal of that code from the global template), the breadcrumbs are completely absent.
I added this override:
Code
<substitution match_key="help:refunds">
<span label="{!HOME}">:</span>
<span label="Help">help:</span>
</substitution>Now it works, but I have to add an override for every single page. That's a filthy workaround.
Pages without a breadcrumb override don't show at all because it's being hidden by {+START,IF,{$IN_STR,{$BREADCRUMBS},<a }} in the global template. If I remove that, it only shows "Refunds" in the breadcrumbs. It needs to say "Home>Help>Refunds", which seems to only be accomplished by adding an override.
But my question is, if the forum doesn't require an override for every forum, topic, or post…why do my pages each need one?
Posted
Code
<substitution match_key="help:">
<span label="{!HOME}">:</span>
</substitution>
<substitution match_key="help:_WILD">
<span label="{!HOME}">:</span>
<span label="Help">help:</span>
</substitution>…makes the world spin again. That's kinda deceiving though, cos there's no wildcard in the override for the forums…
Anywho, it's working now.
Posted
That's right.
Everything on the forum zone (or most things, I'm not 100%) flows back to the forumview page, which is the default page for that zone. For example, a topic is in a forum, and hence the breadcrumbs inherent to that topic are going to flow through forumview.
So that's why the XML configuration is simpler for the forum zone, it is inherently already half way there.
1 guest and 0 members have recently viewed this.
