Commit 00d0aaa0 authored by sylvieg's avatar sylvieg

[MOD]directory: show description category when browsing directory

parent 0c9f43be
{* $Header: /cvsroot/tikiwiki/tiki/templates/tiki-directory_browse.tpl,v 1.16 2007-03-06 11:02:01 gillesm Exp $ *}
{* $Header: /cvsroot/tikiwiki/tiki/templates/tiki-directory_browse.tpl,v 1.17 2007-05-04 14:46:27 sylvieg Exp $ *}
{* The heading and category path *}
{if $feature_siteidentity ne 'y' or $feature_breadcrumbs ne 'y'}
......@@ -17,6 +17,7 @@ loc="page" crumbs=$crumbs}
{if $feature_siteidentity ne 'y' or $feature_breadcrumbs ne 'y'}
<a class="dirlink" href="tiki-directory_browse.php?parent=0">Top</a>{if $parent > 0} >> {/if}{$path}
{/if}
<div class="description">{$parent_info.description}</div>
<br /><br />
<div align="center">
<form action="tiki-directory_search.php" method="post">
......
<?php
// $Header: /cvsroot/tikiwiki/tiki/tiki-directory_browse.php,v 1.14 2007-03-06 19:29:47 sylvieg Exp $
// $Header: /cvsroot/tikiwiki/tiki/tiki-directory_browse.php,v 1.15 2007-05-04 14:46:27 sylvieg Exp $
// Copyright (c) 2002-2007, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
......@@ -38,7 +38,7 @@ if ($_REQUEST["parent"] == 0) {
$all = 1;
} else {
$parent_info = $dirlib->dir_get_category($_REQUEST['parent']);
$smarty->assign('parent_info', $parent_info);
$parent_name = $parent_info['name'];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment