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=&apos;image&apos;">
         <xsl:call-template name="ftype-image"/>
       </xsl:when>
+      <xsl:when test="@ftype=&apos;imagedata&apos;">
+        <xsl:call-template name="ftype-imagedata"/>
+      </xsl:when>
       <xsl:when test="@ftype=&apos;file&apos;">
         <xsl:call-template name="ftype-file"/>
       </xsl:when>
+      <xsl:when test="@ftype=&apos;filedata&apos;">
+        <xsl:call-template name="ftype-filedata"/>
+      </xsl:when>
       <xsl:when test="@ftype=&apos;radio&apos;">
          <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(&apos;servletpath(&apos;, $cloudkey, &apos;,cache(&apos;, $imagesize, 
&apos;))&apos;))}" hspace="0" vspace="0" border="0"/>
+      </span>
+   </xsl:template>
+
+   <xsl:template name="ftype-filedata">
+      <a href="{node:saxonFunction($cloud, string(@number), 
concat(&apos;servletpath(&apos;, $cloudkey, &apos;,number)&apos;))}">
+         <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

Reply via email to