Monday 31 October 2005 8:36:12 am
After digging around the forums i found the solution to the images. http://ez.no/community/forum/setup_design/anonymous_user_not_viewing_images But still my treemenu dont show after the update. The code for this looks like this:
{def $meny_topnode=2}
{if is_set($module_result.node_id)}
{set $meny_topnode=$module_result.node_id}
{/if}
<ul class="venstre">
{def $docs=treemenu( $module_result.path, $module_result.node_id,
array('folder','lenke','iframe','nettside','link'), 0, 3)}
{def $depth=1 $last=0}
{foreach $docs as $menu}
{if and( is_set( $menu.data_map.vis_meny), $menu.data_map.vis_meny.content)}
{if and($last | ne(0), $last.level|gt($menu.level))}
</ul>
</li>
{/if}
<li>
{if and($last | ne(0), $last.level| lt($menu.level))}
<ul class="venstre">
<li>
{/if}
{switch match=$menu.class_name}
{case match='Lenke'}
{if and( is_set( $menu.data_map.nyttvindu), $menu.data_map.nyttvindu.content)}
<a {$menu.is_selected|choose('','class="selected"')}
href={$menu.data_map.navn.content} target="_blank">{$menu.text|shorten(25)}</a>
{else}
<a {$menu.is_selected|choose('','class="selected"')}
href={$menu.data_map.navn.content}>{$menu.text|shorten(25)}</a>
{/if}
{/case}
{case}
<a {$menu.is_selected|choose('','class="selected"')}
href={$menu.url_alias|ezurl}>{$menu.text|shorten(25)}</a>
{/case}
{/switch}
</li>
{set last=$menu}
{/if}
{/foreach}
{while $depth |gt(1)}
</li>
</ul>
{set depth=$depth|sub(1)}
{/while}
</ul>
Getting no errors from debug either, and the menu functioned before the update.
--------------------------------------------
Høgskolen i Lillehammer
Lillehammer University College
http://www.hil.no
--------------------------------------------
Messenlien IT
http://messenlien.com
-------------------------------------------
|