mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Web Scripts:
- samples - fix "execute" javascript error - fix hidden exception when status template had errors - addition of 'roothome' script & template root object git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6011 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
27
config/alfresco/bootstrap/webscripts/folder.get.html.ftl
Normal file
27
config/alfresco/bootstrap/webscripts/folder.get.html.ftl
Normal file
@@ -0,0 +1,27 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>${folder.displayPath}/${folder.name}</title>
|
||||
</head>
|
||||
<body>
|
||||
Folder: ${folder.displayPath}/${folder.name}
|
||||
<br>
|
||||
<table>
|
||||
<#if folder.parent.parent?exists>
|
||||
<tr>
|
||||
<td><td><a href="${url.serviceContext}/sample/folder<@encodepath node=folder.parent/>">..</a>
|
||||
</tr>
|
||||
</#if>
|
||||
<#list folder.children as child>
|
||||
<tr>
|
||||
<#if child.isContainer>
|
||||
<td>><td><a href="${url.serviceContext}/sample/folder<@encodepath node=child/>">${child.name}</a>
|
||||
<#else>
|
||||
<td><td><a href="${url.serviceContext}/api/node/content/${child.nodeRef.storeRef.protocol}/${child.nodeRef.storeRef.identifier}/${child.nodeRef.id}/${child.name?url}">${child.name}</a>
|
||||
</#if>
|
||||
</tr>
|
||||
</#list>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<#macro encodepath node><#if node.parent?exists><@encodepath node=node.parent/>/${node.name?url}</#if></#macro>
|
Reference in New Issue
Block a user