Wednesday 05 November 2003 7:58:34 am
Hi. I have created a custom class 'reference' that belongs to the 'content' group, it has class id:16. It has two attributes, 'client', and 'description'. I have created a section called references and a folder assigned to that section called reference. I would like to print all the reference objects contained in my reference folder. I have done this for standard Articles without problems, however it seems to be something wrong with my way of fetching objects. {let children=fetch(content, list, hash(parent_node_id, $node.node_id, class_filter_type, include, class_filter_array, array(16) ) )}
when I try to loop through with
{section name=Child loop=$children}
{node_view_gui view=line content_node=$Child:item} {/section}
nothing happens. If I insert a <p>debug</p> inside the {section}{/section} nothing is printed. (it should get printed twice since I have two objects of that class)
I do have reference objects created. the reference.tpl which contains this code sucessfully overides the full.tpl
I have a file called line_view_ref.tpl which overrides line.tpl. It contains the following code {attribute_view_gui attribute=$node.object.data_map.client} should it not print out the 'client' attribute of my objects. Please, what am I missing? I am going crazy looking at this, any input would be very welcome indeed.
|