how to add item to breadcrumb
Posted: Sun May 17, 2009 4:55 am
Hi,
I have a breadcrumbs bar and I want to dynamically add the items to it.
I was wondering how to assign the current page <title> tag into the breadcrumb.
I can easily add the link to the current page using $_SERVER[PHP_SELF];
thanks
I have a breadcrumbs bar and I want to dynamically add the items to it.
I was wondering how to assign the current page <title> tag into the breadcrumb.
I can easily add the link to the current page using $_SERVER[PHP_SELF];
thanks
Code: Select all
<?php
$currentPage = $_SERVER[PHP_SELF];
?>
<div id="breadcrumb">
<a id="primaBread" href="index.php">Home page</a>
<a href="<?php echo $currentPage ?>"><?php echo $currentPage ?></a>
</div>