mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Added flex book control to web client, now available within a custom view
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@7561 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -0,0 +1,14 @@
|
|||||||
|
<webscript>
|
||||||
|
|
||||||
|
<!-- Details of the web script -->
|
||||||
|
<shortname>Gallery Sample Data</shortname>
|
||||||
|
<description>Returns data used to populate the Flex gallery sample.</description>
|
||||||
|
|
||||||
|
<!-- Web script URL's -->
|
||||||
|
<url>/collaboration/gallery/{noderef}</url>
|
||||||
|
|
||||||
|
<format default="xml">extension</format>
|
||||||
|
<authentication>user</authentication>
|
||||||
|
<transaction>required</transaction>
|
||||||
|
|
||||||
|
</webscript>
|
@@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
var gallery = search.findNode(url.extension);
|
||||||
|
if (gallery == undefined || gallery.isContainer == false)
|
||||||
|
{
|
||||||
|
status.code = 404;
|
||||||
|
status.message = "Gallery " + url.extension + " not found.";
|
||||||
|
status.redirect = true;
|
||||||
|
}
|
||||||
|
model.gallery = gallery;
|
@@ -0,0 +1,21 @@
|
|||||||
|
|
||||||
|
<gallery>
|
||||||
|
<name>${gallery.name}</name>
|
||||||
|
<#list gallery.children as image>
|
||||||
|
<#if image.isDocument>
|
||||||
|
<image>
|
||||||
|
<url>${absurl(url.context)}${image.url}</url>
|
||||||
|
<#if image.properties["cm:title"]?exists>
|
||||||
|
<title>${image.properties["cm:title"]}</title>
|
||||||
|
<#else>
|
||||||
|
<title/>
|
||||||
|
</#if>
|
||||||
|
<#if image.properties["cm:description"]?exists>
|
||||||
|
<description>${image.properties["cm:description"]}</description>
|
||||||
|
<#else>
|
||||||
|
<description/>
|
||||||
|
</#if>
|
||||||
|
</image>
|
||||||
|
</#if>
|
||||||
|
</#list>
|
||||||
|
</gallery>
|
@@ -0,0 +1,14 @@
|
|||||||
|
<webscript>
|
||||||
|
|
||||||
|
<!-- Details of the web script -->
|
||||||
|
<shortname>Views the specified gallery</shortname>
|
||||||
|
<description>Views the specified gallery.</description>
|
||||||
|
|
||||||
|
<!-- Web script URL's -->
|
||||||
|
<url>/collaboration/gallery/view/{noderef}</url>
|
||||||
|
|
||||||
|
<format default="html">extension</format>
|
||||||
|
<authentication>user</authentication>
|
||||||
|
<transaction>required</transaction>
|
||||||
|
|
||||||
|
</webscript>
|
@@ -0,0 +1,28 @@
|
|||||||
|
|
||||||
|
<#assign dataURL=absurl(url.context) + "/wcs/collaboration/gallery/" + path>
|
||||||
|
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body scroll='no' height="100%" width="100%">
|
||||||
|
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
|
||||||
|
id="Flexbook" width="100%" height="100%"
|
||||||
|
codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
|
||||||
|
<param name="movie" value="/alfresco/swf/Flexbook.swf?dataURL=${dataURL?url}&ticket=${ticket}" />
|
||||||
|
<param name="quality" value="high" />
|
||||||
|
<param name="bgcolor" value="#282828" />
|
||||||
|
<param name="allowScriptAccess" value="sameDomain" />
|
||||||
|
<embed src="/alfresco/swf/Flexbook.swf?dataURL=${dataURL?url}&ticket=${ticket}" quality="high" bgcolor="#000000"
|
||||||
|
width="100%" height="420" name="Flexbook" align="middle"
|
||||||
|
play="true"
|
||||||
|
loop="false"
|
||||||
|
quality="high"
|
||||||
|
allowScriptAccess="sameDomain"
|
||||||
|
type="application/x-shockwave-flash"
|
||||||
|
pluginspage="http://www.adobe.com/go/getflashplayer">
|
||||||
|
</embed>
|
||||||
|
</object>
|
||||||
|
</body>
|
||||||
|
</html>
|
@@ -0,0 +1,3 @@
|
|||||||
|
|
||||||
|
model.ticket = session.ticket;
|
||||||
|
model.path = url.extension;
|
@@ -320,6 +320,11 @@
|
|||||||
<servlet-class>org.alfresco.web.app.servlet.PageRendererServlet</servlet-class>
|
<servlet-class>org.alfresco.web.app.servlet.PageRendererServlet</servlet-class>
|
||||||
</servlet>
|
</servlet>
|
||||||
|
|
||||||
|
<servlet>
|
||||||
|
<servlet-name>QuercusServlet</servlet-name>
|
||||||
|
<servlet-class>org.alfresco.module.phpIntegration.servlet.AlfrescoQuercusServlet</servlet-class>
|
||||||
|
</servlet>
|
||||||
|
|
||||||
<servlet-mapping>
|
<servlet-mapping>
|
||||||
<servlet-name>Faces Servlet</servlet-name>
|
<servlet-name>Faces Servlet</servlet-name>
|
||||||
<url-pattern>/faces/*</url-pattern>
|
<url-pattern>/faces/*</url-pattern>
|
||||||
@@ -485,6 +490,11 @@
|
|||||||
<url-pattern>/page/*</url-pattern>
|
<url-pattern>/page/*</url-pattern>
|
||||||
</servlet-mapping>
|
</servlet-mapping>
|
||||||
|
|
||||||
|
<servlet-mapping>
|
||||||
|
<servlet-name>QuercusServlet</servlet-name>
|
||||||
|
<url-pattern>*.php</url-pattern>
|
||||||
|
</servlet-mapping>
|
||||||
|
|
||||||
<session-config>
|
<session-config>
|
||||||
<session-timeout>60</session-timeout>
|
<session-timeout>60</session-timeout>
|
||||||
</session-config>
|
</session-config>
|
||||||
|
BIN
source/web/swf/Flexbook.swf
Normal file
BIN
source/web/swf/Flexbook.swf
Normal file
Binary file not shown.
Reference in New Issue
Block a user