Jump to content

Breadcrumbs


marina_ls

Recommended Posts

hi there!

I'm trying to show breadcrumbs but without last level, this is, the title of current topic/page/blog, etc. I've seen that the code for breadcrumb is this:

 

	<ul data-role="breadcrumbList">
		<li>
			<a title="{lang="home"}" href='{setting="base_url"}'>
				<span><i class='fa fa-home'></i> {lang="home"}{{if \count( \IPS\Output::i()->breadcrumb )}} <i class='fa fa-angle-right'></i>{{endif}}</span>
			</a>
		</li>
		{{$last = end(\IPS\Output::i()->breadcrumb);}}
		{{foreach \IPS\Output::i()->breadcrumb as $k => $b}}
			<li>
				{{if $b[0] === NULL}}
					{$b[1]}
				{{else}}
					<a href='{$b[0]}'>
						<span>{$b[1]} {{if $b != $last}}<i class='fa fa-angle-right'></i>{{endif}}</span>
					</a>
				{{endif}}
			</li>
		{{endforeach}}
	</ul>



But not sure about what to change to don't show last level...

Does anyone know how?

Thanks in advance!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...