Jump to content

breadcrumb truncate


Recommended Posts

Hi all, i have problem with truncate breadcrumb. I truncate breadcrumb to 50 characters. But it doesn't work.

 

 

breadcrumb.tpl

<!-- Breadcrumb -->
{if isset($smarty.capture.path)}{assign var='path' value=$smarty.capture.path}{/if}
<div class="breadcrumb">
<!--	<a href="{$base_dir}" title="{l s='Return to Home'}"><img src="{$img_dir}icon/home.gif" height="26" width="26" alt="{l s='Home'}" /></a> -->
	{if isset($path) AND $path}
		<span class="navigation-pipe" {if isset($category) && isset($category->id_category) && $category->id_category == 1}style="display:none;"{/if}><!--{$navigationPipe|escape:html:'UTF-8'} --></span>
		{if !$path|strpos:'span'}
			<span class="navigation_page">{$path|strip_tags|truncate:50:'...'}</span>
		{else}
			{$path|strip_tags|truncate:50:'...'}
		{/if}
	{/if}
</div>
<!-- /Breadcrumb -->
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...