breadcrumbs?

4 posts by 2 authors in: Forums > CMS Builder
Last Post: August 23, 2011   (RSS)

Re: [rez] breadcrumbs?

By Jason - August 22, 2011

Hi,

In your drop down list, you can use "num" as the value of your options and "breadcrumbs" as your label. This way your drop down would look something like this:

catering: beverages
regular : beverages

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] breadcrumbs?

By rez - August 22, 2011

Oh, I see. That's perfect.

How can I remove the parents on the viewer? Normally, I would use:

<?php echo $items['category:label'] ?>

but in various situations, I won't want the breadcrumbs, just the current category.

Re: [rez] breadcrumbs?

By Jason - August 23, 2011

Hi,

You can get the last element from the bread crumb like this:

<?php
$breadcrumbArray = explode(":",$items['category:label']);
$label = trim(@$breadcrumbArray[count($breadcrumbArray)-1]);
?>

<?php echo $label;?>


Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/