• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Multiple Bread Crumb Removal (Including Help page)?:

CritiKiL

Active member
#1
Ok, I have made my Help page an Intel page. It has breadcrumbs and I would like to remove them but I only know how to remove 'one BC' and it has to be a node explained here: http://xenforo.com/community/resources/remove-the-breadcrumbs-from-a-specific-node.342/. So I've already done this for my 'Shop' tab. Is it possible to do this (or similar) for 'more than just one BC page?

But it doesn't explain how to remove BC's for more than one node "nor" does it explain how to do this for the Help tab (renamed 'Intel' on my site). Can anyone show me how I would accomplish this?
 

Jake Bunce

XenForo moderator
Staff member
#2
Following up with the link you posted... the condition you need is this:

Code:
<xen:if is="{$controllerName} != 'XenForo_ControllerPublic_Help'">
That will hide the breadcrumbs on all help pages.
 

CritiKiL

Active member
#3
Following up with the link you posted... the condition you need is this:

Code:
<xen:if is="{$controllerName} != 'XenForo_ControllerPublic_Help'">
That will hide the breadcrumbs on all help pages.
Hi Jake. I tried putting that in with the link instructions but I 'first' keep getting a syntax error and then when I add the </xen:if>, it doesn't remove the breadcrumbs ;-( Could I trouble you to write for me the exact coding for removing both the node-40 and the part you are mentioning which will remove all the BC's in the Help area? Thanks in advance man.
 

Jake Bunce

XenForo moderator
Staff member
#4
Code:
<xen:if is="{$quickNavSelected} != 'node-55' AND {$controllerName} != 'XenForo_ControllerPublic_Help'">

</xen:if>
 

Brogan

XenForo moderator
Staff member
#7
It's a Page node so just add another conditional like so: AND {$quickNavSelected} != 'node-x'

Change the x to the node ID.
 

Jake Bunce

XenForo moderator
Staff member
#8
Try this:

Code:
<xen:if is="{$quickNavSelected} != 'node-55' AND {$quickNavSelected} != 'node-42' AND {$controllerName} != 'XenForo_ControllerPublic_Help'">

</xen:if>
 

CritiKiL

Active member
#10
Ok, Now I would like to remove the breadcrumbs from the follows front pages of the Media, Members (Users), Stats (Leaderboard) and Rosters (XenStaff) areas. These are not nodes so how can I include them in the code you've given me above? I tried using this code:

Code:
{$controllerName} != 'XenForo_ControllerPublic_Media'
, but the 'Media' doesn't work nor does lower-case version (media). Help please? Thanks.
 

Jake Bunce

XenForo moderator
Staff member
#11
Use this format so you can more easily expand the condition:

Code:
<xen:if is="!in_array({$quickNavSelected}, array('node-55', 'node-42')) AND !in_array({$controllerName}, array('XenForo_ControllerPublic_Help'))">

</xen:if>
Now you can add more controllers, like this:

Code:
<xen:if is="!in_array({$quickNavSelected}, array('node-55', 'node-42')) AND !in_array({$controllerName}, array('XenForo_ControllerPublic_Help', 'XenForo_ControllerPublic_Media'))">

</xen:if>
 

CritiKiL

Active member
#12
I see but that's not the problem. Problem is, I don't know how to define each page that I want to have the breadcrumbs removed. (ex: In the code XeForo_ControllerPubic_Media, 'Media' is not the correct name for the Media page, and etc.) . Looking at how to define each of these pages for breadcrumb removal:

1) XenMedia (first page only)
2) Members (first page only)
3) Roster (XenStaff, first page)
4) Stats (Leaderboard for XBL stats, first page)
 

Jake Bunce

XenForo moderator
Staff member
#13
You need the controller name for each of them. If you paste this into the template then it will output the controller name so you can see what it is:

Code:
{$controllerName}
 

Jake Bunce

XenForo moderator
Staff member
#15
For example:

Code:
{$controllerName}
<xen:if is="!in_array({$quickNavSelected}, array('node-55', 'node-42')) AND !in_array({$controllerName}, array('XenForo_ControllerPublic_Help', 'XenForo_ControllerPublic_Media'))">

</xen:if>
Now you will see the controller name output on the page above the breadcrumbs.
 

CritiKiL

Active member
#18
Wow man. You don't know how many times I've searched before I posted! That page 'never' came up! Thanks for having pioneered something which I think is a very righteous post. Why would a breadcrumb be needed in any other part of a XenForo CMS? It's useless other than just for the forum area, and I've even temporarily removed it from mine just so that people don't worry about getting lost. It's simpler to just click the 'Forum' tab to go back to the main part of the forum...much like the iPhone does with it's Home key! ;-)
 

Diana

Active member
#20
I have a related problem.

breadcrumb.png

I've used a page node for my landing page and I want to remove the breadcrumb from the top and bottom. As you can see the alignment of my navbar is off. I think removing the breadcrumb will fix that (and don't want it there anyway).

I managed to remove "forums" (using Borgan's instructions) but I still have "home."

I'm sorry if this has already been explained. I'm probably just not getting it.

Can you explain it as it relates specifically to my problem?