Update of
/var/cvs/contributions/CMSContainer/cmsc/edit-webapp/src/webapp/editors/editwizards_new/xsl
In directory
james.mmbase.org:/tmp/cvs-serv10242/cmsc/edit-webapp/src/webapp/editors/editwizards_new/xsl
Modified Files:
wizard.xsl
Log Message:
CMSC-1288 - Add new ftypes to wizard.xsl: to display assets without changing
See also:
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer/cmsc/edit-webapp/src/webapp/editors/editwizards_new/xsl
See also: http://www.mmbase.org/jira/browse/CMSC-1288
Index: wizard.xsl
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer/cmsc/edit-webapp/src/webapp/editors/editwizards_new/xsl/wizard.xsl,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -b -r1.20 -r1.21
--- wizard.xsl 2 Feb 2009 06:21:24 -0000 1.20
+++ wizard.xsl 11 Feb 2009 10:21:20 -0000 1.21
@@ -320,9 +320,15 @@
<xsl:when test="@ftype='image'">
<xsl:call-template name="ftype-image"/>
</xsl:when>
+ <xsl:when test="@ftype='imagedata'">
+ <xsl:call-template name="ftype-imagedata"/>
+ </xsl:when>
<xsl:when test="@ftype='file'">
<xsl:call-template name="ftype-file"/>
</xsl:when>
+ <xsl:when test="@ftype='filedata'">
+ <xsl:call-template name="ftype-filedata"/>
+ </xsl:when>
<xsl:when test="@ftype='radio'">
<xsl:call-template name="ftype-radio"/>
</xsl:when>
@@ -916,6 +922,12 @@
</xsl:if>
</xsl:template>
+ <xsl:template name="ftype-imagedata">
+ <span class="readonly">
+ <img src="{node:saxonFunction($cloud, string(@number),
concat('servletpath(', $cloudkey, ',cache(', $imagesize,
'))'))}" hspace="0" vspace="0" border="0"/>
+ </span>
+ </xsl:template>
+
<xsl:template name="ftype-file">
<xsl:choose>
<xsl:when test="@dttype='data' or @maywrite='false'">
@@ -983,6 +995,12 @@
</xsl:choose>
</xsl:template>
+ <xsl:template name="ftype-filedata">
+ <a href="{node:saxonFunction($cloud, string(@number),
concat('servletpath(', $cloudkey, ',number)'))}">
+ <xsl:call-template name="prompt_do_download"/>
+ </a>
+ </xsl:template>
+
<!--CMSC-1049 Time display in article creation author: Rain.Tang-->
<!--template new-loop-options is new added only used in hours and minutes
display-->
<xsl:template name="new-loop-options">
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs