Author Topic

Trond Åge Kvalø

Monday 16 February 2004 8:46:19 am

Comment14745

Hi James!

Thank you for the answer, but version is optional according to the docs.

I don't know what was wrong, but I've somehow fixed it by using the following code, cut and paste from the docs about fetch:

{section loop=fetch( 'content', 'class_attribute_list', hash( 'class_id', 2 ) )}
<h3>{$:item.name|wash}</h3>
{/section}

As you can see, no name for the section here. Which puzzles me, because this is what the docs has to say about Sections:

"Each section must have a name. The name will declare the unique namespace for this section. To access a variable in the namespace you have to add the name of the namespace to the variable. "

But now it works at least.

BTW: do you know if it's possible to store data directly from the template langugae?

trondåge

trondåge