Author: xlawrence
Date: Wed Jan 23 12:01:41 2008
New Revision: 26
URL: https://svndev.jahia.net/websvn/listing.php?sc=3D1&rev=3D26&repname=3D=
doc_templates
Log:
added jsp to override the way the default files box is displayed
Added:
branches/JAHIA-INCLUDE-BRANCH/src/jsp/common/box/filesBoxDisplay.jsp
Modified:
branches/JAHIA-INCLUDE-BRANCH/src/java/jahiatemplates/Doc_templates.pro=
perties
branches/JAHIA-INCLUDE-BRANCH/src/java/jahiatemplates/Doc_templates_fr.=
properties
Modified: branches/JAHIA-INCLUDE-BRANCH/src/java/jahiatemplates/Doc_templat=
es.properties
URL: https://svndev.jahia.net/websvn/diff.php?path=3D/branches/JAHIA-INCLUD=
E-BRANCH/src/java/jahiatemplates/Doc_templates.properties&rev=3D26&repname=
=3Ddoc_templates
=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-BRANCH/src/java/jahiatemplates/Doc_templates.pro=
perties (original)
+++ branches/JAHIA-INCLUDE-BRANCH/src/java/jahiatemplates/Doc_templates.pro=
perties Wed Jan 23 12:01:41 2008
@@ -129,3 +129,12 @@
update.rsss =3D Settings
update.rss =3D Update RSS feed
delete.rss =3D Delete RSS feed
+
+boxContainer.filesContainer =3D Files
+boxContainer.filesContainer.file =3D File
+boxContainer.filesContainer.description =3D Description
+boxContainer.filesContainer.displayDetails =3D Display details
+add.filesContainers =3D Add a file
+update.filesContainers =3D Settings
+update.filesContainer =3D Update file
+delete.filesContainer =3D Delete file
Modified: branches/JAHIA-INCLUDE-BRANCH/src/java/jahiatemplates/Doc_templat=
es_fr.properties
URL: https://svndev.jahia.net/websvn/diff.php?path=3D/branches/JAHIA-INCLUD=
E-BRANCH/src/java/jahiatemplates/Doc_templates_fr.properties&rev=3D26&repna=
me=3Ddoc_templates
=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-BRANCH/src/java/jahiatemplates/Doc_templates_fr.=
properties (original)
+++ branches/JAHIA-INCLUDE-BRANCH/src/java/jahiatemplates/Doc_templates_fr.=
properties Wed Jan 23 12:01:41 2008
@@ -129,3 +129,12 @@
update.rsss =3D Options
update.rss =3D Modifier feed RSS
delete.rss =3D Supprimer feed RSS
+
+boxContainer.filesContainer =3D Fichiers
+boxContainer.filesContainer.file =3D Fichier
+boxContainer.filesContainer.description =3D Description
+boxContainer.filesContainer.displayDetails =3D Afficher les d=C3=A9tails d=
u fichier
+add.filesContainers =3D Ajouter un fichier
+update.filesContainers =3D Options
+update.filesContainer =3D Modifier un fichier
+delete.filesContainer =3D Supprimer un fichier
Added: branches/JAHIA-INCLUDE-BRANCH/src/jsp/common/box/filesBoxDisplay.jsp
URL: https://svndev.jahia.net/websvn/filedetails.php?path=3D/branches/JAHIA=
-INCLUDE-BRANCH/src/jsp/common/box/filesBoxDisplay.jsp&rev=3D26&repname=3Dd=
oc_templates
=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-BRANCH/src/jsp/common/box/filesBoxDisplay.jsp (a=
dded)
+++ branches/JAHIA-INCLUDE-BRANCH/src/jsp/common/box/filesBoxDisplay.jsp We=
d Jan 23 12:01:41 2008
@@ -0,0 +1,66 @@
+<%--
+Copyright 2002-2008 Jahia Ltd
+
+Licensed under the JAHIA COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (JCDD=
L),
+Version 1.0 (the "License"), or (at your option) any later version; you may
+not use this file except in compliance with the License. You should have
+received a copy of the License along with this program; if not, you may ob=
tain
+a copy of the License at
+
+ http://www.jahia.org/license/
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+--%>
+<%@ include file=3D"../../chapter1/taglib/declarations.inc" %>
+<content:containerList name=3D"files${boxID}" id=3D"files" parentContainer=
Name=3D"boxContainer">
+ <table class=3D"files" border=3D"0" cellspacing=3D"0" cellpadding=3D"0=
" width=3D"100%">
+ <content:container id=3D"fileContainer">
+ <content:fileField name=3D"boxFile" valueId=3D"myFileField"/>
+ <content:booleanField name=3D"boxFileDisplayDetails" valueId=
=3D"displayDetails" display=3D"false"/>
+ <logic:present name=3D"myFileField">
+ <tr>
+ <td>
+ <logic:equal name=3D"myFileField" property=3D"down=
loadable" value=3D"true">
+ <a class=3D"<jahia-components:getPicto fileNam=
e=3D"${myFileField.fileFieldTitle}"/>"
+ href=3D"<bean:write name=3D"myFileField" pr=
operty=3D"downloadUrl"/>"
+ title=3D"<bean:write name=3D"myFileField" p=
roperty=3D"fileFieldTitle"/>">
+ <bean:write name=3D"myFileField" property=
=3D"fileFieldTitle"/>
+ </a>
+ </logic:equal>
+ </td>
+ <td>
+ <content:textField valueId=3D"boxFileDesc" name=3D=
"fileDesc" display=3D"false"/>
+ <logic:present name=3D"fileDesc">
+ <c:out value=3D"${fileDesc}" escapeXml=3D"fals=
e"/>
+ </logic:present>
+ </td>
+ <c:choose>
+ <c:when test=3D"${displayDetails =3D=3D 'true'}">
+ <td class=3D"nowrap"><bean:write name=3D"myFil=
eField" property=3D"formatedSize"/></td>
+ <td class=3D"nowrap"><bean:write name=3D"myFil=
eField" property=3D"formatedLastModifDate"/></td>
+ </c:when>
+ <c:otherwise>
+ <td> </td>
+ <td> </td>
+ </c:otherwise>
+ </c:choose>
+ <td>
+ <jahiaHtml:actionMenu name=3D"fileContainer" nameP=
ostFix=3D".filesContainer"
+ resourceBundle=3D"jahiatempl=
ates.Doc_templates"
+ useFieldSet=3D"false">
+ </jahiaHtml:actionMenu>
+ </td>
+ </tr>
+ </logic:present>
+ </content:container>
+ </table>
+ <jahiaHtml:actionMenu name=3D"files" namePostFix=3D".filesContainers"
+ resourceBundle=3D"jahiatemplates.Doc_templates"
+ useFieldSet=3D"false"
+ labelKey=3D"add.filesContainers">
+ </jahiaHtml:actionMenu>
+</content:containerList>
\ No newline at end of file
_______________________________________________
cvs_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/cvs_list