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

RM 1.1 Change "Resources" to something else in breadcrumb only

Discussion in 'Resource Manager Support' started by Rob, Mar 19, 2014.

  1. Rob

    Rob Well-Known Member

    I'd like to change "resources" to "educational resources", but only in the breadcrumbs. Can this be done as I do not currently see an easy way.

    Thanks for your help.
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    If you edit the breadcrumb template and find:
    HTML:
                <xen:if is="{$selectedTab}">
                    <span class="crust selectedTabCrumb"{xen:if $microdata, ' itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb"'}>
                        <a href="{$selectedTab.href}" class="crumb"{xen:if $microdata, ' rel="up" itemprop="url"'}><span{xen:if $microdata, ' itemprop="title"'}>{$selectedTab.title}</span></a>
                        <span class="arrow"><span>&gt;</span></span>
                    </span>
                </xen:if>
    Replace with:
    HTML:
                <xen:if is="{$selectedTab}">
                    <xen:if is="{$selectedTab.title} == '{xen:phrase resources}'">
                        <xen:set var="$selectedTab.title">Educational Resources</xen:set>
                    </xen:if>
                    <span class="crust selectedTabCrumb"{xen:if $microdata, ' itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb"'}>
                        <a href="{$selectedTab.href}" class="crumb"{xen:if $microdata, ' rel="up" itemprop="url"'}><span{xen:if $microdata, ' itemprop="title"'}>{$selectedTab.title}</span></a>
                        <span class="arrow"><span>&gt;</span></span>
                    </span>
                </xen:if>
     
    Binu and Rob like this.
  3. Rob

    Rob Well-Known Member

    Perfecto!!!
     

Share This Page