Tomek Klaudel
|
Friday 26 August 2005 1:12:25 am
I've just tried with new template syntax. I changed:
<li>
{def $pathitem=$module_result.path[2]}
{section show=$pathitem.url}
{section show=is_set($pathitem.url_alias)}
<a href={$pathitem.url_alias|ezurl}>{$pathitem.text|wash}</a>
{/section}
{/section}
<ul>
{def $nn=fetch( 'content', 'node',
hash( 'node_id', $pathitem.node_id ) )}
{def $nodes=fetch( 'content', 'list',
hash( 'parent_node_id', $pathitem.node_id,
'sort_by', array( 'published', false() ),
'class_filter_type', 'include',
'class_filter_array', array( '18' ) ) )}
{foreach $nodes as $node}
<li><a href={$node.url_alias|ezurl}>{$node.name|wash}</a></li>
{/foreach}
</ul>
</li>
to:
<li>
{def $pathitem=$module_result.path[2]}
<a href="#">{$pathitem.text|wash}</a>
<ul>
{def $nn=fetch( 'content', 'node',
hash( 'node_id', $pathitem.node_id ) )}
{def $nodes=fetch( 'content', 'list',
hash( 'parent_node_id', $pathitem.node_id,
'sort_by', array( 'published', false() ),
'class_filter_type', 'include',
'class_filter_array', array( '18' ) ) )}
{foreach $nodes as $node}
<li><a href={$node.url_alias|ezurl}>{$node.name|wash}</a></li>
{/foreach}
</ul>
</li>
And it's still disappearing after refresh... I have TemplateCompile and TemplateCache switched off. Any idea?
|