com.github.dynamicextensionsalfresco.controlpanel.WebScripts.index.get.html.ftl Maven / Gradle / Ivy
Show all versions of control-panel Show documentation
<#import "templates/html-macros.inc.ftl" as html>
<@html.document title="Web Scripts - Dynamic Extensions" active="web-scripts">
Annotation Web Scripts
<#if (webScriptsByFamily?size > 0) >
<#list webScriptsByFamily?keys as family>
<#assign webScripts=webScriptsByFamily[family]>
${family}
Method
Format
URI
Handler
<#list webScripts as webScript>
${webScript.method}
${webScript.defaultFormat!""}
<#list webScript.uris as uri>
-
${uri}
#list>
${webScript.handler!'n/a'}
#list>
#list>
<#else>
No Web Scripts found.
#if>
Web Script URI mappings
The Web Script engine caches URI mappings. Once a URI is called, it will
continue to be mapped to a particular Web Script or "404 Not Found".
Calling a URI for an annotation Web Script that has, in the meantime, been undeployed,
will result in a "503 Service Unavailable" response.
Regular Web Scripts
Regular Web Scripts are listed in the
Alfresco Web Script index.
Note that annotation Web Scripts do not show up in the Alfresco Web Script index.
For annotation Web Scripts see the list above instead.
To deploy regular Web Scripts as Dynamic Extensions, simply include the XML, JavaScript
and Freemarker resources in the OSGi bundle. For example:
- /path/to/webscript.get.desc.xml
- /path/to/webscript.get.js
- /path/to/webscript.get.html.ftl
To register the Web Scripts, reset the
Alfresco Web Script index.
@html.document>