Author: xlawrence
Date: Thu Jan 10 16:22:56 2008
New Revision: 19489

URL: https://svndev.jahia.net/websvn/listing.php?sc=3D1&rev=3D19489&repname=
=3Djahia
Log:
Added a tag file in order to get the Picto associated to a file type

Added:
    branches/JAHIA-INCLUDE-TAG-BRANCH/core/src/webapp/WEB-INF/tags/getPicto/
    branches/JAHIA-INCLUDE-TAG-BRANCH/core/src/webapp/WEB-INF/tags/getPicto=
/getPicto.tag
      - copied, changed from r19484, branches/JAHIA-INCLUDE-TAG-BRANCH/core=
/src/webapp/WEB-INF/tags/topbar/topbar.tag
Modified:
    branches/JAHIA-INCLUDE-TAG-BRANCH/core/src/webapp/WEB-INF/etc/taglibs/j=
ahia-components.tld

Modified: branches/JAHIA-INCLUDE-TAG-BRANCH/core/src/webapp/WEB-INF/etc/tag=
libs/jahia-components.tld
URL: https://svndev.jahia.net/websvn/diff.php?path=3D/branches/JAHIA-INCLUD=
E-TAG-BRANCH/core/src/webapp/WEB-INF/etc/taglibs/jahia-components.tld&rev=
=3D19489&repname=3Djahia
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/JAHIA-INCLUDE-TAG-BRANCH/core/src/webapp/WEB-INF/etc/taglibs/j=
ahia-components.tld (original)
+++ branches/JAHIA-INCLUDE-TAG-BRANCH/core/src/webapp/WEB-INF/etc/taglibs/j=
ahia-components.tld Thu Jan 10 16:22:56 2008
@@ -16,6 +16,11 @@
         <path>/WEB-INF/tags/topbar/topbar.tag</path>
     </tag-file>
 =

+    <tag-file>
+        <name>getPicto</name>
+        <path>/WEB-INF/tags/getPicto/getPicto.tag</path>
+    </tag-file>
+
     <tag>
         <name>currentPagePath</name>
         <tagclass>org.jahia.taglibs.html.links.CurrentPagePathTag</tagclas=
s>

Copied: branches/JAHIA-INCLUDE-TAG-BRANCH/core/src/webapp/WEB-INF/tags/getP=
icto/getPicto.tag (from r19484, branches/JAHIA-INCLUDE-TAG-BRANCH/core/src/=
webapp/WEB-INF/tags/topbar/topbar.tag)
URL: https://svndev.jahia.net/websvn/diff.php?path=3D/branches/JAHIA-INCLUD=
E-TAG-BRANCH/core/src/webapp/WEB-INF/tags/getPicto/getPicto.tag&rev=3D19489=
&repname=3Djahia
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/JAHIA-INCLUDE-TAG-BRANCH/core/src/webapp/WEB-INF/tags/topbar/t=
opbar.tag (original)
+++ branches/JAHIA-INCLUDE-TAG-BRANCH/core/src/webapp/WEB-INF/tags/getPicto=
/getPicto.tag Thu Jan 10 16:22:56 2008
@@ -1,3 +1,4 @@
+<%@ tag import=3D"org.jahia.utils.JahiaTools" %>
 <%--
 Copyright 2002-2006 Jahia Ltd
 =

@@ -15,58 +16,6 @@
 See the License for the specific language governing permissions and
 limitations under the License.
 --%>
-<%@ taglib uri=3D"contentLib" prefix=3D"content" =

-%><%@ taglib uri=3D"/WEB-INF/etc/struts/struts-bean" prefix=3D"bean" =

-%><%@ taglib uri=3D"/WEB-INF/etc/struts/struts-logic" prefix=3D"logic" =

-%><%@ taglib uri=3D"/WEB-INF/etc/taglibs/jstl/c" prefix=3D"c" %>
-<%@ taglib uri=3D"jahiaHtmlLib" prefix=3D"jahiaHtml" %>
-<logic:equal name=3D"currentRequest" property=3D"logged" value=3D"true">
-    <link rel=3D"stylesheet" type=3D"text/css" href=3D"<content:serverHttp=
Path/>/jsp/jahia/topbar/css/topbar.css"></link>
-    <!--[if IE]><style type=3D"text/css">
-    #jahiatoolbar ul ul.advancedoptions li {
-        behavior: url('<content:serverHttpPath/>/jsp/jahia/topbar/css/adva=
ncedoptions.htc');
-    }
-    </style>
-    <![endif]-->
-    <logic:equal name=3D"currentRequest" property=3D"editMode" value=3D"tr=
ue">
-        <%-- REMOVE THIS LINE --%>
-        <c:set var=3D"wf_visu_enabled" value=3D"true" scope=3D"session"/>
-        =

-        <script type=3D"text/javascript" src=3D"<c:url value=3D'/jsp/jahia=
/javascript/prototype/proto15sc17-compressed.js'/>"></script>
-        <script type=3D"text/javascript" src=3D"<c:url value=3D'/jsp/jahia=
/javascript/workflow.js'/>"></script>
-        <script type=3D"text/javascript">
-            Event.observe(window, 'load', function () {
-                jahia.config.contextPath =3D '${pageContext.request.contex=
tPath}';
-                jahia.config.pageId =3D '${currentPage.id}';
-                new JahiaWorkflowStateInfo().showState();
-            });
-        Event.observe(window, 'unload', Event.unloadCache);
-        function doPublishPage() {
-            var comment =3D prompt("<content:resourceBundle resourceBundle=
=3D'jahiatemplates.common' resourceName=3D'quickValidate.prompt' defaultVal=
ue=3D'!!!This will perform a workflow validation operation. You can enter y=
our comment here. Would you like to continue?'/>", "");
-            if (comment !=3D null) {
-                new Ajax.Request(jahia.config.contextPath + '/ajaxaction/Q=
uickValidate', {
-                    method: 'post',
-                    parameters: 'pid=3D' + jahia.config.pageId + '&key=3DC=
ontentPage_' + jahia.config.pageId + '&commentsInput=3D' + encodeURICompone=
nt(comment),
-                    onFailure: function(transport) {
-                        alert('Error ' + transport.status + ' - ' + transp=
ort.statusText);
-                    }
-                });
-            }
-            return false;
-        }    =

-        </script>
-    </logic:equal>
-    <%@ include file=3D"declarations.tagf"%>
-    <div id=3D"jahiatoolbar">
-        <ul>
-            <li class=3D"dot"><%@ include file=3D"operationmodes.tagf"%></=
li>
-            <li class=3D"dot"><%@ include file=3D"advancedoptions.tagf"%><=
/li>
-            <li class=3D"dot"><%@ include file=3D"workflow.tagf"%></li>
-        </ul>
+<[EMAIL PROTECTED] name=3D"fileName" required=3D"true" %>
 =

-        <%@ include file=3D"progressbar.tagf"%>
-        <%@ include file=3D"usertools.tagf"%>
-
-    </div>
-    <div id=3D"endjahiatoolbar"></div>
-</logic:equal>
\ No newline at end of file
+<%=3DJahiaTools.getPicto(fileName)%>
\ No newline at end of file

_______________________________________________
cvs_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/cvs_list

Reply via email to