Example Recursive Template

Document created by resplin Employee on Jun 6, 2015Last modified by alfresco-archivist on Aug 31, 2016
Version 2Show Document
  • View in full screen mode

Obsolete Pages{{Obsolete}}

The official documentation is at: http://docs.alfresco.com



Freemarker ExamplesExamples


Description


This template can be called from a space.  It recursively walks down the subspaces and prints out the spaces.  It should be used as a good starter for any type or recursive walks down the node tree.


Screenshot


recursive_template.gif




Template


Full version



<tr>
<td align='left'>(${depth})
    <a href='/alfresco${node.url}'>${node.properties.name}</a>

 

   Recursive Listing of Spaces:


Name Space


Requirements


Alfresco Version 2.1.x It uses standard functionality provided in this version of Alfresco.


Source


See Template section above.

Attachments

Outcomes