Some functions on this portal require JavaScript but your browser does not support it or it has been disabled.
Skip to main content
Wednesday 01 September 2004 3:09:06 am - 1 reply
Valentina Ferrari
Wednesday 01 September 2004 3:16:17 am
Ops! ...I made a mistake!Now, using this code I show the versions from the 1° to the 5°, but I would like to show versions from the 5° to the 1°.
TIAValentina
{* Fetch an object. *} {let object=fetch( 'content', 'object', hash( 'object_id', $node.contentobject_id ) )} {* Fetch all versions of this object. *} {let version_list=fetch( 'content', 'version_list', hash( 'contentobject', $object ) )} {* Loop through all versions and display their attributes. *} {section var=version loop=$version_list} <table border="1"> {let attribute_list=fetch( 'content', 'contentobject_attributes', hash( 'version', $version ) )} {section var=attribute loop=$attribute_list} {section show=eq($attribute.content,'')} {section-else} <tr> <td height="20" valign="top" width="30%"> <span class="txtazz"><b>{$attribute.contentclass_attribute.name}:</b></span> </td> <td valign="top"> {attribute_view_gui attribute=$attribute} </td> </tr> {/section} {/section} {/let} </table> {/section} {/let} {/let}
You must be logged in to post messages in this topic!