Share » Forums » Setup & design » html code is disappearing sometimes

html code is disappearing sometimes

html code is disappearing sometimes

Friday 26 August 2005 12:14:35 am - 2 replies

Author Message

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?

Tomek Klaudel

Friday 26 August 2005 1:33:06 am

This is next part of my monologue :)

I found that:

{let attrs=$node.object}
{$attrs|attribute(show,1)}

is also disapearing after refresh. I reported that as a bug.

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu