Monday 11 August 2003 8:48:45 am
You want to print a different table for every Match-object I guess. I think this code might work:
{let match_list=fetch(content,list,hash(parent_node_id,$node.node_id,class_filter_type,include,class_filter_array,array(-->match_class_id<--)))}
{section name=match loop=$match_list}
{node_view_gui view=tableview content_node=$match:item}
{/section} {/let} Create a tableview_match.tpl: {default content_version=$node.contentobject_version_object}
<table border='1'>
<tr>
<td>{attribute_view_gui attribute=$content_version.data_map.date}</td>
<td>{attribute_view_gui attribute=$content_version.data_map.team1}</td>
<td>{attribute_view_gui attribute=$content_version.data_map.team2}</td>
</tr> </table> {/default} Do not forget to edit your override.ini(.append) file by entering something like this:
[tableview_match]
Source=node/view/full.tpl
MatchFile=node/view/tableview_match.tpl
Subdir=templates Match[class]=-->match_class_id<-- edit the -->match_class_id<-- with the id number of the match class.
|