You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Mark Humphryes <ma...@gilmarsystems.com> on 2003/05/11 08:44:20 UTC

Second Logo in Top Navigation

Hi,

I want to display two logos in the top navigation.  But it doesn't want
to play ball!!!

I have added a new entry to JetspeedResources.properties:

topnav.logo.file=images/CSLogo2.bmp
topnav.logo1.file=images/world2.gif

Top.vm has been modified as follows:

##Main logo
#if ($config.getString("topnav.logo.file"))
  #set ($LogoFile = $config.getString("topnav.logo.file"))
  #set ($LogoURI = $clink.setURI("$LogoFile").Absolute)
#else
  #set ($LogoURI = $config.getString("topnav.logo.url"))
#end

## 2nd logo
#if ($config.getString("topnav.logo1.file"))
  #set ($LogoFile1 = $config.getString("topnav.logo1.file"))
  #set ($LogoURI1 = $clink.setURI("$LogoFile1").Absolute)
#else
  #set ($LogoURI1 = $config.getString("topnav.logo.url"))
#end

... followed further down by:

## This is the top navigation bar displayed for the anonymous user, i.e.
they are not logged in
##
  <table cellspacing="0" border="0" width="100%">
    <tr valign="middle">
      ##
      ## Display the company logo with link back to the the portal home
page
      ##

      <td align="left" width="8%">
        <a href="$jslink.Template">
          <img border="0" alt="$l10n.HOME" src="$LogoURI1">
        </a>
      </td>
      <td align="left" width="32%">
  <b>2nd Logo here!!</b>
          <img border="0" alt="$l10n.HOME" src="$LogoURI">
      </td>

For some reason, the second logo will not display - just shows as a
placeholder on the page.  It is not the logo file that is the problem,
because if I swap the order, the first logo always displays correctly,
but not the second.  If I can get this to work, then I can modify the
logged-on user section.

Viewing the source for the generated page shows that the path and file
are not being picked up by (presumably) the
'$config.getString("topnav.logo.file") ':

     <td align="left" width="8%">
        <a href="
<http://www.citizensynergy.co.uk/jetspeed/portal/media-type/html/languag
e/en/user/anon/page/default.psml/template/Home;jsessionid=45004582D01225
C655F056C9119C0D15>
http://www.citizensynergy.co.uk/jetspeed/portal/media-type/html/language
/en/user/anon/page/default.psml/template/Home;jsessionid=45004582D01225C
655F056C9119C0D15">
          <img border="0" alt="Home" src="/jetspeed/images/world2.gif">
        </a>
      </td>
      <td align="left" width="32%">
  <b>2nd Logo here!!</b>
          <img border="0" alt="Home" src="/jetspeed/">
      </td>

See result at: http://www.citizensynergy.co.uk/jetspeed - this is a
development site before moving to a proper portal!!
Any ideas what I am doing wrong??

Also - how do I change the background colour of a pane - couldn't find
that - may just have missed it!

T.I.A.


Mark Humphryes
GILMAR SYSTEMS LIMITED ... providing effective business solutions  ... a
partner in Citizen <http://www.citizensynergy.com/> Synergy
Mobile: +44 (0)778 654 1000
Office: +44 (0)1892 653827
e-mail: markh@gilmarsystems.com
 <http://www.gilmarsystems.com/> http://www.gilmarsystems.com/   and
<http://www.citizensynergy.com/> http://www.citizensynergy.com
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material.   Any review, retransmission, dissemination or other use of,
or taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you
received this in error, please contact the sender immediately and delete
the material from any computer.




  _____

I've stopped 37 spam messages. You can too!
One month FREE spam protection at  <http://www.cloudmark.com/spamnet?v1>
www.cloudmark.com
 <http://www.cloudmark.com/spamnet?v1> Cloudmark SpamNet - Join the
fight against spam!