Data at Your Fingertips: Explore Our New Reporting and Statistical Capabilities By Ryan Ashbrook Tuesday at 01:29 PM
marina_ls Posted March 4, 2019 Share Posted March 4, 2019 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.