Jump to content



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">
			<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>
		{{$last = end(\IPS\Output::i()->breadcrumb);}}
		{{foreach \IPS\Output::i()->breadcrumb as $k => $b}}
				{{if $b[0] === NULL}}
					<a href='{$b[0]}'>
						<span>{$b[1]} {{if $b != $last}}<i class='fa fa-angle-right'></i>{{endif}}</span>

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


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

  • Recently Browsing   0 members

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