1. 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)?:

Discussion in 'Styling and Customization Questions' started by CritiKiL, Mar 11, 2012.

  1. CritiKiL

    CritiKiL Active Member

    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?
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    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.
     
  3. CritiKiL

    CritiKiL Active Member

    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.
     
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

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

    CritiKiL Active Member

    Oh, now I see what you meant. And it works like a charm now! Thanks buddy ;-)
     
  6. CritiKiL

    CritiKiL Active Member

    Jake. I have one more area of which I'd like to remove the breadcrumbs. It's the 'Warroom' page, so how would I include that page into what we already have going on?

    Reference: CLICK HERE
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

    It's a Page node so just add another conditional like so: AND {$quickNavSelected} != 'node-x'

    Change the x to the node ID.
     
  8. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Try this:

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

    CritiKiL Active Member

    Works just fine. Thanks Brogan and Jake .
     
  10. CritiKiL

    CritiKiL Active Member

    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.
     
  11. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    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>
    
     
  12. CritiKiL

    CritiKiL Active Member

    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)
     
  13. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    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}
    
     
    CritiKiL likes this.
  14. CritiKiL

    CritiKiL Active Member

    Where exactly and how exactly do I paste this code?
     
  15. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    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 likes this.
  16. CritiKiL

    CritiKiL Active Member

    Thanks again Jake, fixed it all up! ;-)
     
  17. Digital Doctor

    Digital Doctor Well-Known Member

    CritiKiL likes this.
  18. CritiKiL

    CritiKiL Active Member

    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! ;-)
     
  19. Digital Doctor

    Digital Doctor Well-Known Member

    Agreed.
    Wasting space with a breadcrumb at the top of the page (premium location) is a BAD idea.
     
    CritiKiL likes this.
  20. Diana

    Diana Active Member

    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?
     

Share This Page