mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
- refactored DocumentDetailsBean and SpaceDetailsBean common code into BaseDetailsBase . Fixed a couple of minor errors in example templates . Preview in Template actions now launched as dialog actions git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2586 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
27 lines
1.1 KiB
Plaintext
27 lines
1.1 KiB
Plaintext
<#-- Shows use of the childByNamePath, childrenByXPath and childrenByLuceneSearch API -->
|
|
|
|
<h3>Template Documents in 'Company Home/Data Dictionary/Presentation Templates':</h3>
|
|
<table>
|
|
<#list companyhome.childByNamePath["Data Dictionary/Presentation Templates"].children as child>
|
|
<#if child.isDocument>
|
|
<tr><td><a href="/alfresco${child.url}" target="new">${child.properties.name}</a></td></tr>
|
|
</#if>
|
|
</#list>
|
|
</table>
|
|
|
|
<h3>Folders in 'Company Home/Data Dictionary/Space Templates/Software Engineering Project':</h3>
|
|
<table>
|
|
<#list companyhome.childrenByXPath["*[@cm:name='Data Dictionary']/*[@cm:name='Space Templates']/*[@cm:name='Software Engineering Project']/*"] as child>
|
|
<#if child.isContainer>
|
|
<tr><td><img src="/alfresco${child.icon32}"> ${child.properties.name}</td></tr>
|
|
</#if>
|
|
</#list>
|
|
</table>
|
|
|
|
<h3>Lucene Search - documents containing the text 'Alfresco'</h3>
|
|
<table>
|
|
<#list companyhome.childrenByLuceneSearch["TEXT:alfresco"] as child>
|
|
<tr><td><a href="/alfresco${child.url}" target="new">${child.properties.name}</a></td></tr>
|
|
</#list>
|
|
</table>
|