Author: xlawrence
Date: Thu Aug  3 11:14:41 2006
New Revision: 340

URL: 
https://svndev.jahia.net/websvn/listing.php?sc=1&rev=340&repname=corporate_portal_templates_v2
Log:
only allow images for the logo. Example of how to set the filter from the 
definition so the engine filters by file type the files it displays in the 
engine. With this example, the embedded file manager will only allow the user 
to select images of type gif and jpg

Modified:
    trunk/src/jsp/common/site_settings.inc

Modified: trunk/src/jsp/common/site_settings.inc
URL: 
https://svndev.jahia.net/websvn/diff.php?path=/trunk/src/jsp/common/site_settings.inc&rev=340&repname=corporate_portal_templates_v2
==============================================================================
--- trunk/src/jsp/common/site_settings.inc (original)
+++ trunk/src/jsp/common/site_settings.inc Thu Aug  3 11:14:41 2006
@@ -61,18 +61,15 @@
 }
 
 public String getColorCode(String color) {
-    String str = getInfo(color,colorCodes);
-    return str;
+    return getInfo(color,colorCodes);
 }
 
 public String getColorTopPict(String color) {
-    String str = getInfo(color,colorTopPicts);
-    return str;
+    return getInfo(color,colorTopPicts);
 }
 
 public String getColorLeftPict(String color) {
-    String str = getInfo(color,colorLeftPicts);
-    return str;
+    return getInfo(color,colorLeftPicts);
 }
 
 %>
@@ -87,7 +84,7 @@
             type="File"
             titleKey="logo"
             bundleKey="<%=resBundleID%>"
-            value="<jahia_imageFile>"
+            value="*.gif,*.jpg"
         />
         <% 
/********************************************************************
              * footerText is the text you will find at the htmk footer. This 
text

Reply via email to