Answer the question
In order to leave comments, you need to log in
How to remove a link from breadcrumbs?
There is a breadcrumb code:
<div id="crumbs breadcrumb">
<?
$i = 1;
if ($this->_tpl_vars['content']['tree_for_map']):
$this->_foreach['f1'] = array('total' => count($_from = (array)$this->_tpl_vars['content']['tree_for_map']), 'iteration' => 0);
if ($this->_foreach['f1']['total'] > 0):
foreach ($_from as $this->_tpl_vars['element']):
$this->_foreach['f1']['iteration']++;
?>
<span itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a itemprop="url" href="<?php if ($this->_tpl_vars['element']['view_url'] == '/pages/index'): ?>/<?php else: echo $this->_tpl_vars['element']['view_url']; endif; ?>"><span itemprop="title"><?php echo $this->_tpl_vars['element']['name']; ?></span></a></span>
<? if (! ($this->_foreach['f1']['iteration'] == $this->_foreach['f1']['total'])): ?> / <? endif; endforeach; endif; unset($_from); endif;
echo ' / ' . $this->_tpl_vars['content']['name'];
?>
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question