Display breadcrumb for Sub-categories
1 posts by 1 authors in: Forums > CMS Builder
Last Post: December 27, 2012 (RSS)
Hi,
I would like to display breadcrumb for Sub-categories.
I tried 2 different code to display the breadcrumb.
1)
<?php echo $record['breadcrumb']; ?>
2) can not display full and correct breadcrumb.
<?php foreach ($categoryRecords as $record): ?>
<?php if ( $record['num'] != @$selectedCategory['num'] ): ?>
<a href="/<?php echo strtolower($record['url']); ?>/">
<?php endif ?>
<?php echo $record['name']; ?>
<?php if ( $record['num'] != @$selectedCategory['num'] ): ?>
</a>
<?php endif ?>
<?php endforeach ?>
2 problems:
1) I have 3 different levels. If I use above code. It only one URL for the breadcrumb. How can I give the level its own level url?
Ex : Home URL > level 1 URL > level 2 URL > detail product URL.
All have it's own level URL.
2) The breadcrumb on filed is system field.
Between different level. The default mark is ":" Colon. Can I change it to ">" arrow?
Thanks!
Jac