Stay on the right page when we navigate up in the breadcrumb.

Introduce a "show" parameter which contains the id of the item that we
want to show when we go to the parent's page.
This commit is contained in:
Bharat Mediratta
2009-01-03 20:14:06 +00:00
parent 8ed5200101
commit 3d9e5e439e
3 changed files with 26 additions and 1 deletions
+1 -1
View File
@@ -12,7 +12,7 @@
<? if ($page_type != "tag"): ?>
<ul id="gBreadcrumbs">
<? foreach ($parents as $parent): ?>
<li><a href="<?= url::site("albums/{$parent->id}") ?>"><?= $parent->title ?></a></li>
<li><a href="<?= url::site("albums/{$parent->id}?show=$item->id") ?>"><?= $parent->title ?></a></li>
<? endforeach ?>
<li class="active"><?= $item->title ?></li>
</ul>