Update of
/var/cvs/contributions/CMSContainer/cmsc/edit-webapp/src/webapp/editors/editwizards_new/xsl
In directory
james.mmbase.org:/tmp/cvs-serv11805/cmsc/edit-webapp/src/webapp/editors/editwizards_new/xsl
Modified Files:
Tag: b1_4
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.8.2.2
retrieving revision 1.8.2.3
diff -u -b -r1.8.2.2 -r1.8.2.3
--- wizard.xsl 3 Jun 2008 14:18:24 -0000 1.8.2.2
+++ wizard.xsl 11 Feb 2009 10:50:54 -0000 1.8.2.3
@@ -318,9 +318,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>
@@ -761,4 +767,16 @@
<!-- END OVERRIDE PROMPTS.XSL -->
+ <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-filedata">
+ <a href="{node:saxonFunction($cloud, string(@number),
concat('servletpath(', $cloudkey, ',number)'))}">
+ <xsl:call-template name="prompt_do_download"/>
+ </a>
+ </xsl:template>
+
</xsl:stylesheet>
\ No newline at end of file
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs