Thursday 24 November 2005 9:54:45 am
Hi, I have some problems concerning the new documentation, the deprecated template functions like section and the not documentated functions like has_content and the not working is_set and is_null :( Here is the sample, the well known breadcrump in new template style, ok, the foreach loops works, but not the is_set and is_null: first with is_set
{foreach $module_result.path as $index => $object}
{if gt($index,1) }
{if is_set( $object.url )}
{$object.text|wash} /
{else}
<a href={$object.url|ezurl}>{$object.text|wash}</a> /
{/if}
{/if}
{/foreach}
and with is_null
{foreach $module_result.path as $index => $object}
{if gt($index,1) }
{if is_null( $object.url )}
{$object.text|wash} /
{else}
<a href={$object.url|ezurl}>{$object.text|wash}</a> /
{/if}
{/if}
{/foreach}
The old template style was something like
{section name=Path loop=$module_result.path}
{section show=$Path:item.url}
{section show=is_set($Path:item.url_alias)}
<a href={$Path:item.url_alias|ezurl}>{$Path:item.text|wash}</a> /
{section-else}
<a href={$Path:item.url|ezurl}>{$Path:item.text|wash}</a> /
{/section}
{section-else}
{$Path:item.text|wash}
{/section}
{section-else}
{/section}
Anybody knows? Heiner
|