asprin
Active member
As part of my add-on, I've seen that when I go the landing page (my addon controller->index function), the breadcrumb getting generated is as follows:
The "FC" links to
Is there a way to prepend the breadcrumb with the forum index link (
The things I've tried so far after looking at existing templates:
(1) Using source attribute on the breadcrumb tag
This results in the following (the root link isn't getting overwritten):
(2) Using breadcrumbs tag
This results in the following (same result as (1)):
In summary, I'm able to append to the existing breadcrumb but not prepend or remove the root link. How would I go about building the breadcrumb from scratch via PHP or within a template if at all it is possible?
The "FC" links to
localhost/xen/fc
where "xen" is the root folder and "fc" is my add-on public controller.Is there a way to prepend the breadcrumb with the forum index link (
localhost/xen
)? Something like this:The things I've tried so far after looking at existing templates:
(1) Using source attribute on the breadcrumb tag
HTML:
<xf:title>Some titles goes here</xf:title>
<xf:breadcrumb source="$crumbs" />
<!--
$crumbs would be something like this:
array(
['href' => 'aaa', 'value' => 'Forums'],
['href' => 'bbb', 'value' => 'FC']
)
-->
(2) Using breadcrumbs tag
HTML:
<xf:title>Some title</xf:title>
<xf:breadcrumb href="aaa">Forums</xf:breadcrumb>
<xf:breadcrumb href="bbb">FC</xf:breadcrumb>
In summary, I'm able to append to the existing breadcrumb but not prepend or remove the root link. How would I go about building the breadcrumb from scratch via PHP or within a template if at all it is possible?