You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by pa...@apache.org on 2006/01/26 23:11:21 UTC

svn commit: r372629 - in /portals/jetspeed-1/trunk: webapp/WEB-INF/conf/JetspeedResources.properties webapp/WEB-INF/templates/vm/navigations/html/top.vm xdocs/config_guide.xml

Author: paulsp
Date: Thu Jan 26 14:11:16 2006
New Revision: 372629

URL: http://svn.apache.org/viewcvs?rev=372629&view=rev
Log:
o Get LogoLink form JetspeedResources.properties
o LogoURI was calculate but not used in top.vm
o Documentation update


Modified:
    portals/jetspeed-1/trunk/webapp/WEB-INF/conf/JetspeedResources.properties
    portals/jetspeed-1/trunk/webapp/WEB-INF/templates/vm/navigations/html/top.vm
    portals/jetspeed-1/trunk/xdocs/config_guide.xml

Modified: portals/jetspeed-1/trunk/webapp/WEB-INF/conf/JetspeedResources.properties
URL: http://svn.apache.org/viewcvs/portals/jetspeed-1/trunk/webapp/WEB-INF/conf/JetspeedResources.properties?rev=372629&r1=372628&r2=372629&view=diff
==============================================================================
--- portals/jetspeed-1/trunk/webapp/WEB-INF/conf/JetspeedResources.properties (original)
+++ portals/jetspeed-1/trunk/webapp/WEB-INF/conf/JetspeedResources.properties Thu Jan 26 14:11:16 2006
@@ -680,6 +680,7 @@
 #   topnav.vm        - VM file name for the top nav, in templates/vm/navigations/html
 #   topnav.logo.file - file name of the logo relative to <jetspeed_home>. Do not use with logo.url
 #   topnav.logo.url  - URL of logo. Useful when using a common company logo that is on a different server
+#   topnav.logo.link - Link when logo is clicked.  Defaults to Jetspeed home.
 #   topnav.user_login.enable - Display login prompts on navigation bar.  If false then login nust be via login portlet
 #   topnav.user_creation.enable - Display "create user" prompts on navigation bar.  Requires topnav.user_login.enable=true
 #   topnav.my_pages.enable - Display list box of pages for current user.
@@ -687,6 +688,7 @@
 topnav.vm=top.vm
 topnav.logo.file=images/jetspeed-logo-1.5.gif
 topnav.logo.url=
+topnav.logo.link=
 topnav.user_login.enable=true
 topnav.user_creation.enable=true
 topnav.my_pages.enable=true
@@ -728,8 +730,8 @@
 #           Expires       = (current time + n seconds)
 http.lifetime=0
 
-
 #########################################
+
 # Forward Service                       #
 #########################################
 services.ForwardService.classname = org.apache.jetspeed.services.forward.JetspeedForwardService

Modified: portals/jetspeed-1/trunk/webapp/WEB-INF/templates/vm/navigations/html/top.vm
URL: http://svn.apache.org/viewcvs/portals/jetspeed-1/trunk/webapp/WEB-INF/templates/vm/navigations/html/top.vm?rev=372629&r1=372628&r2=372629&view=diff
==============================================================================
--- portals/jetspeed-1/trunk/webapp/WEB-INF/templates/vm/navigations/html/top.vm (original)
+++ portals/jetspeed-1/trunk/webapp/WEB-INF/templates/vm/navigations/html/top.vm Thu Jan 26 14:11:16 2006
@@ -34,6 +34,12 @@
   #set ($FontColor = $config.getString("topnav.font.color"))
 #end
 
+#if ($config.getString("topnav.logo.link"))
+  #set ($LogoLink = $config.getString("topnav.logo.link"))
+#else
+  #set ($LogoLink = $jslink.HomePage)
+#end
+
 #if($FontColor && $FontColor != "")
   #set($FontStyle="style=color:$FontColor; ")
 #end 
@@ -57,8 +63,8 @@
       ## Display the company logo with link back to the the portal home page
       ##
       <td align="left" width="30%">
-        <a href="$jslink.HomePage">
-          <img border="0" alt="$l10n.HOME" src="$LogoFile">
+        <a href="$LogoLink">
+          <img border="0" alt="$l10n.HOME" src="$LogoURI">
         </a>
       </td>
       ##

Modified: portals/jetspeed-1/trunk/xdocs/config_guide.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-1/trunk/xdocs/config_guide.xml?rev=372629&r1=372628&r2=372629&view=diff
==============================================================================
--- portals/jetspeed-1/trunk/xdocs/config_guide.xml (original)
+++ portals/jetspeed-1/trunk/xdocs/config_guide.xml Thu Jan 26 14:11:16 2006
@@ -208,9 +208,11 @@
       <p>
         To customize the navigation bars, the following steps are suggested:
         <ul>
-          <li>Replace the reference to the Jetspeed logo with your logo in <tt>default.</tt><i>xx</i></li>
+          <li>Replace the reference to the Jetspeed logo with your logo by setting the property <tt>topnav.logo.link</tt>
+            <tt>topnav.logo.url</tt> in &lt;jetspeed_home&gt;/WEB-INF/conf/JetspeedResources.properties.</li>
           <li>Add "banner adds" to <tt>top.vm</tt> or <tt>top_default.jsp</tt> and <tt>top_loggedin.jsp</tt></li>
-          <li>If no left navigation bar is desired, them remove the referance from <tt>default.</tt><i>xx</i></li>
+          <li>If no left navigation bar is desired, then set the property <tt>topnav.logo.url</tt> in 
+             &lt;jetspeed_home&gt;/WEB-INF/conf/JetspeedResources.properties. to <i>false</i></li>
           <li>If a left navigation bar is desired, then update <tt>left.</tt><i>xx</i></li>
           <li>Add any copyright notices, disclaimers, logos, ... to <tt>bottom.</tt><i>xx</i></li>
         </ul>
@@ -618,4 +620,4 @@
       </p>
     </section>
   </body>
-</document>
\ No newline at end of file
+</document>



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org