I realize pete has already indicated that he'd do this, but I was most of 
the way through this when I saw his post.  At any rate, I'm at home a bit 
sick and a lot bored, so I figured I'd do it anyway.

To use an alternate logo, add the <organization> and <organizationLogo> 
elements to your xdocs/project.xml file.

<project href="a valid href">

  <organization href="http://cli4j.sourceforge.net";>
    The CLI4J Project
  </organization>

  <organizationLogo
      href=""http://sourceforge.net/sflogo.php?group_id=40471&amp;type=7";>
    The SourceForge.net logo
  </organizationLogo>

  ...

</project>

They work basically the same as the <logo> element.

Glenn McAllister
SOMA Networks, Inc.

Index: src/dvsl/xdocs/site.dvsl
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/src/dvsl/xdocs/site.dvsl,v
retrieving revision 1.26
diff -u -r1.26 site.dvsl
--- src/dvsl/xdocs/site.dvsl    21 Apr 2002 08:25:58 -0000      1.26
+++ src/dvsl/xdocs/site.dvsl    22 Apr 2002 19:06:38 -0000
@@ -66,9 +66,31 @@
         <table border="0" cellspacing="0" cellpadding="8" width="100%">
           <tr>
             <td>
+              #if( $project.organizationLogo )
+                
+                #set( $alt = $project.organizationLogo )
+                #set( $src = $project.organizationLogo.attribute("href") )
+                
+                #if( $project.organization )
+                  #set( $home = $project.organization.attribute("href") )
+                #else
+                  #set( $home = $project.attribute("href") )
+                #end
+
+                <a href="$home">
+                #if ( $src.startsWith("http") )
+                  <img src="$src" align="left" alt="$alt" border="0" />
+                #else
+                  <img src="$relativePath$src" align="left" alt="$alt" border="0" />
+                #end
+                </a>
+                
+              #else
+                ## default to the Jakarta logo
               <a href="http://jakarta.apache.org/";>
                 <img src="$relativePath/images/jakarta-logo-blue.gif" align="left" 
alt="The Jakarta Project" border="0"/>
               </a>
+              #end
             </td>
             <td>
               <div align="right" id="login">

Reply via email to