Forum Discussion

Claudius's avatar
13 years ago

Localizable category and board names

We've create multiple language sub-"communities" by creating categories and boards below for the seperate language. The community (e.g. the root node in the community structure) title remained the En...
  • ChiaraS's avatar
    ChiaraS
    13 years ago

    We recently did a similar customization, here's the code we used for the custom breadcrumb component:

     

    <div class="${page.content.nav.breadcrumb.css}">
    	<ul class="lia-list-standard-inline">
    	<#list page.content.nav.breadcrumb.crumbs as crumb>
    	<#if (crumb_index = 0) && (page.content.nav.breadcrumb.crumbs?size > 1)>
    		<li class="lia-breadcrumb-node crumb">		
    		<a class="lia-link-navigation crumb-community lia-breadcrumb-community lia-breadcrumb-forum" href="/">${text.format("custom.breadcrumb.title")} </a>
    		</li>
    		<li class="lia-breadcrumb-seperator crumb-community lia-breadcrumb-community lia-breadcrumb-forum">
    			<span class="separator">${page.content.nav.breadcrumb.seperator}</span>
    		</li>
    	<#elseif (page.content.nav.breadcrumb.crumbs?size > 1)>
    		<li class="${crumb.wrapperCss}">
    			<#if crumb.isLink>
    			<a href="${crumb.url}" class="${crumb.css}">${crumb.text}</a>
    			<#else>
    			<span>${crumb.text}</span>
    			</#if>
    		</li>
    		<#if crumb_has_next>
    		<li class="${crumb.separatorCss}">
    			<span class="separator">${page.content.nav.breadcrumb.seperator}</span>
    		</li>
    		</#if>
    	</#if>
    	</#list>
    	</ul>
    </div>

     You can then set the community title for each language by defining "custom.breadcrumb.title"