+ [% classmetadata.colnames.$col; %] |
+
+ [% IF col == "url" && item.url; # Possibly too much magic.
+ ' '; item.url; '';
+ ELSE;
+ maybe_link_view(item.$col);
+ END; %]
+[%#
+
+This tests whether or not the returned value is an object, and if so,
+creates a link to a page viewing that object; if not, it just displays
+the text as normal. The object is linked using its stringified name;
+by default this calls the C method, or returns the object's ID
+if there is no C method or other stringification method defined.
+
+=cut
+
+#%]
+ |
+
+ [% END; %]
+