Update of 
/var/cvs/contributions/CMSContainer/cmsc/edit-webapp/src/webapp/editors/editwizards_new/xsl
In directory 
james.mmbase.org:/tmp/cvs-serv11823/cmsc/edit-webapp/src/webapp/editors/editwizards_new/xsl

Modified Files:
      Tag: b1_5
        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.13.2.3
retrieving revision 1.13.2.4
diff -u -b -r1.13.2.3 -r1.13.2.4
--- wizard.xsl  15 Dec 2008 05:11:44 -0000      1.13.2.3
+++ wizard.xsl  11 Feb 2009 10:50:59 -0000      1.13.2.4
@@ -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>
@@ -783,4 +789,17 @@
       <a href="#" id="calendarSelect" class="button" 
onclick="javascript:window.open 
('calendar.jsp?i...@fieldname}&amp;type='+document.getElementById('calendar-type').value,
 'calendar', 'height=400, width=500, top='+eval((window.screen.availHeight - 
400)/2)+', left='+eval((window.screen.availWidth - 500)/2)+',toolbar=no, 
menubar=no, scrollbars=no, location=no, status=no')"><xsl:value-of 
select="$prompt_newsletter_select" />  </a> <a class="button"  
id="calendarDelete"  href="#" 
onclick="javascript:document.getElementById('calendar-expression').innerHTML='';document.getElementById('{...@fieldname}').value=''"><xsl:value-of
 select="$prompt_newsletter_delete" /></a></nobr>
       <div id="calendar-expression"></div>     
   </xsl:template>
+  
+  <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