Hi Dave,
My breadcrumb is displaying in reverse order when I style it hroizontally. If I left it as an unordered list, it would be correct.
Rather than getting Projects >> 2015-2020 >> City >> Main Square. I am getting Main Square >> City >> 2015-2020 >> Projects.
How do I rectify this? My CMSB code is:
<?php
$ThisPage = $_SERVER['REQUEST_URI'];
$NumberOfHyphens = substr_count($ThisPage, "-");
$ThisPageQueryString = explode("?", $ThisPage);
if($NumberOfHyphens = 0) {
$ProjName = $ThisPageQueryString[1];
} else {
$ProjName = str_replace("-", " ", $ThisPageQueryString[1]);
}
// load record from 'navigation_menu'
list($navigation_menuRecords, $navigation_menuMetaData) = getRecords(array(
'tableName' => 'navigation_menu',
'limit' => '1',
'where'=> 'name="'.$ProjName.'"',
));
$navigation_menuRecord = @$navigation_menuRecords[0]; // get first record
$CurrentPageNum = $navigation_menuRecord['num'];
// load records from 'navigation_menu'
list($navigation_menuRecords, $selectedNavigation_menu) = getCategories(array(
'tableName' => 'navigation_menu',
'categoryFormat' => 'breadcrumb',
'selectedCategoryNum' => $CurrentPageNum,
));
?>
<ul class="breadcrumb">
<?php foreach ($navigation_menuRecords as $categoryRecord): ?>
<?php echo $categoryRecord['_listItemStart'] ?>
<?php if ($categoryRecord['_isSelected']): ?>
<b><a href="<?php echo $categoryRecord['_link'] ?>"><?php echo $categoryRecord['name'] ?></a></b>
<?php else: ?>
<a href="<?php echo $categoryRecord['_link'] ?>"><?php echo $categoryRecord['name'] ?></a>
<?php endif; ?>
<?php echo $categoryRecord['_listItemEnd'] ?>
<?php endforeach; ?>
</ul>
My CSS is:
.breadcrumb li ul {
display: inline;
margin: 0;
padding: 0;
float: left;
}
.breadcrumb li {
list-style-type: none;
}
.breadcrumb li ul li {
padding-right: 10px;
}
.breadcrumb li ul li:after {
content: " > ";
font-weight: bold;
font-size: 75%;
font-family: 'Arial Black';
}
Thanks