Wednesday 19 January 2005 12:46:41 pm
We addressed these issues somewhat in the development of a site for a state agency ( http://dms.myflorida.com ). On the first point, yes it is possible to have the current page unlinked, rather than specified with its own CSS tag. This template code accomplishes this effect:
<ul>
{let mainMenu=treemenu( $module_result.path, $module_result.node_id,
array('newsletter','newsletter_article','feedback_form'), 3,1 )}
{section var=menu loop=$mainMenu}
{section show=$menu.item.is_selected}
<li id="nav{$menu.item.level}current">
{$menu.item.text}
</li>
{section-else}
<li class="nav{$menu.item.level}">
<a href={$menu.item.url_alias|ezurl}>{$menu.item.text}</a>
</li>
{/section}
{/section}
{/let}
</ul>
In regards to the second point, we eliminated the "details..." links in favor of only linking the title. This prevented the duplicated link texts. In other words, we linked </code><h2><a href="/helloworld">Hello World</a></h2></code> instead of creating a separate link called details. However, your suggestion is also possible with a little customization.
http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions
|