Author: andre
Date: 2010-06-09 10:15:26 +0200 (Wed, 09 Jun 2010)
New Revision: 42478

Modified:
   openimages/trunk/src/main/webapp/mediafragment.jspx
Log:
added new tag to substring filenames OIP-134


Modified: openimages/trunk/src/main/webapp/mediafragment.jspx
===================================================================
--- openimages/trunk/src/main/webapp/mediafragment.jspx 2010-06-09 08:13:36 UTC 
(rev 42477)
+++ openimages/trunk/src/main/webapp/mediafragment.jspx 2010-06-09 08:15:26 UTC 
(rev 42478)
@@ -27,11 +27,6 @@
         <mm:param name="to" value="30" />
         <mm:param name="ellipsis" value="..." />
       </mm:escaper>
-      <mm:escaper id="filenamewrapper" type="substring">
-        <mm:param name="from" value="0" />
-        <mm:param name="to" value="48" />
-        <mm:param name="ellipsis" value="..." />
-      </mm:escaper>
 
       <div class="main-column">
         <oip:h2><fmt:message key="media.item" /></oip:h2>
@@ -112,11 +107,11 @@
                   <c:choose>
                     <c:when test="${_.available}">
                       <a href="${mm:escape('text/xml', _.URL)}">
-                        <mm:write referid="filename" escape="filenamewrapper" 
/>
+                        <oip:filesubstr filename="${filename}" length="52" />
                       </a>
                     </c:when>
                     <c:otherwise>
-                      <mm:write referid="filename" escape="filenamewrapper" />
+                      <oip:filesubstr filename="${filename}" length="52" />
                     </c:otherwise>
                   </c:choose>
                 </li>

_______________________________________________
Cvs mailing list
Cvs@lists.mmbase.org
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to