mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
- AVM Web Script Sample (browse stores, folders, content)
- Fix Web Script issue where urls contained ; (due to tomcat) - Allow AVMScriptStore to be passed through script converters (add serializable) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6071 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
31
config/alfresco/bootstrap/webscripts/avmbrowse.get.html.ftl
Normal file
31
config/alfresco/bootstrap/webscripts/avmbrowse.get.html.ftl
Normal file
@@ -0,0 +1,31 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>AVM Folder: ${folder.displayPath}/${folder.name}</title>
|
||||
</head>
|
||||
<body>
|
||||
<a href="${url.serviceContext}/sample/avm/stores">AVM Store</a>: ${store.id}
|
||||
<br>
|
||||
<br>
|
||||
AVM Folder: ${folder.displayPath}/${folder.name}
|
||||
<br>
|
||||
<br>
|
||||
<table>
|
||||
<#if folder.parent?exists>
|
||||
<tr>
|
||||
<td>${folder.parent.properties.creator}<td> <td>${folder.parent.size}<td> <td>${folder.parent.properties.modified?datetime}<td> <td><td><a href="${url.serviceContext}/sample/avm/path/${store.id}<@encodepath node=folder.parent/>">..</a>
|
||||
</tr>
|
||||
</#if>
|
||||
<#list folder.children as child>
|
||||
<tr>
|
||||
<#if child.isContainer>
|
||||
<td>${child.properties.creator}<td> <td>${child.size}<td> <td>${child.properties.modified?datetime}<td> <td>><td><a href="${url.serviceContext}/sample/avm/path/${store.id}<@encodepath node=child/>">${child.name}</a>
|
||||
<#else>
|
||||
<td>${child.properties.creator}<td> <td>${child.size}<td> <td>${child.properties.modified?datetime}<td> <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