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

RM 1.1 Removing Breadlinks

toodlez

Active member
#1
How do you remove the breadlinks from resource view?

Or at least remove the forum link (first link on the breadlinks)

Please provide both options if you know what to enter, thanks!
 

Mike

XenForo developer
Staff member
#2
To remove the actual child breadcrumbs, the resource_view template. Otherwise, you could need to add a conditional to remove them from the PAGE_CONTAINER template when necessary.

The "Forums" link is added if you don't enter a home page URL. This is controlled by the breadcrumb template.
 

toodlez

Active member
#3
To remove the actual child breadcrumbs, the resource_view template. Otherwise, you could need to add a conditional to remove them from the PAGE_CONTAINER template when necessary.

The "Forums" link is added if you don't enter a home page URL. This is controlled by the breadcrumb template.
What conditional would I need to use to remove them completely from resource view? Just use the template conditional with "resource_view" at the template, correct?
 

toodlez

Active member
#4
I've commented out the breadlink and the post update button from the top section in the resource_view template... so now that leaves the base breadlink with the home link...

I've put this code on it, and it is still showing on my resource view :

Code:
<xen:if is="!in_array({$contentTemplate}, array('resource_view'))">                        <div class="breadBoxTop {xen:if $topctrl, withTopCtrl}">
                            <xen:if is="{$topctrl}"><div class="topCtrl">{xen:raw $topctrl}</div></xen:if>
                            <xen:include template="breadcrumb"><xen:set var="$microdata">1</xen:set></xen:include>
                        </div></xen:if>
 

toodlez

Active member
#6
This should work:

HTML:
<xen:if is="{$contentTemplate} != 'resource_view'">

This is what I have now, it is not working

Code:
                        <xen:if is="{$contentTemplate} != 'resource_view' AND !in_array({$quickNavSelected}, array('node-83','node-86','node-87'))">
 

Brogan

XenForo moderator
Staff member
#7
It works for me:

HTML:
<xen:if is="{$contentTemplate} != 'forum_list' AND !in_array({$quickNavSelected}, array('node-32'))">
The breadcrumbs are removed from the forum list and the forum node 32.
 

Brogan

XenForo moderator
Staff member
#13
From the FAQ:

How can I find out which template to edit?
Using your browser, view the page source and look for a line of code near the top of the page which begins
<div id="content" class="; the class is the name of the template. So for the main forum page, the line of code is:<div id="content" class="forum_list">, which makes the template forum_list.

http://xenforo.com/community/threads/frequently-asked-questions.5183/#post-181112
 

toodlez

Active member
#14
Yes, I see that...
This is what I have now, but it is still showing on that page:

Code:
<xen:if is="{$contentTemplate} != 'resource_description, resource_index' AND !in_array({$quickNavSelected}, array('node-83','node-86','node-87'))">
 

Brogan

XenForo moderator
Staff member
#15
You can't add more than one template to the statement in that manner.

You will need to use an array.
 

toodlez

Active member
#17
@Brogan is it possible to remove the breadlink from a resource that has a thread created for it?

These above codes remove the breadlinks just fine where intended and when viewing a resource that has no thread associated / auto created with it... but I still get a breadlink with only the "Home" link in it when viewing a resource that has a thread / discussion associated with it
 

toodlez

Active member
#18
I guess a better question would be.. since I'm overriding the resource manager default style with a child style... could I completely scrap the breadlinks from all templates on said child style ? Or would that still remove all breadlinks from all styles.
 
Last edited:

Brogan

XenForo moderator
Staff member
#19
Any changes you make to a style will only affect that style and any children, as long as the children don't have the same template/SP modified themselves.