You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@forrest.apache.org by Ferdinand Soethe <sa...@soethe.net> on 2004/11/16 08:34:26 UTC

Re[2]: Tab-related images at top of Page

Ross Gardler wrote:

RG> There is not already a way to accomplish this. You would need to create
RG> your own skin and modify site2xhtml.xsl to do this.

RG> It sounds like a pretty cool feature, please add a request to the issue
RG> tracker, and if you do create the functionality for yourself please post
RG> a patch there too.

Perhaps I can suggest an easier way to achieve this (not that I really
know what I'm writing about :-)):

Looking at the finished pages I found this:

> <div class="projectlogo">
> <a href="http://myproj.mygroup.org/"><img class="logoImage" alt="MyProject" src="images/project.png" title="MyProject Description"></a>
> </div>

to be the code that provides the image at the top-center of the page.
A similar section exists for the second logo.

Further down I found this

<ul id="tabs">
<li class="current">
<a class="base-selected" href="index.html">kayaking</a>
</li>

for the selected tab.

If (and that I'm not sure of) site2xhtml created these sections, it
means that it "knows" which tab is selected for this page (rather than
just assembling pieces from earlier transformations).

That being the case, could it not derive the Image-Sourcefilename from
the id-name of the selected tab "images/kayaking.png",
"images/bookcrossing.png", etc. ?

A switch in skinconfig could turn this mechanism on or off so that you
could either use the group/projekt system or an alternative
site/tab-system of logos.


--
Ferdinand Soethe



Re: Re[3]: Tab-related images at top of Page

Posted by Thorsten Scherler <th...@apache.org>.
El lun, 29-11-2004 a las 18:02, Ferdinand Soethe escribió:
> Could somebody perhaps give some feedback if this is a feasible way to
> achieve a tab dependent image on top of a page? There was no further
> comment to this thread some weeks ago.
> 

Like Ross said, it is not yet implemented and will come in 0.7. 

If you want to do it then use your ideas, there sound alright. Still you
have to create your own skin.

<xsl:variable name="tab-logo"> 
 <xsl:value-of select="ul[@id='tabs']/li[class='current']"/>
</xsl:variable>

<div class="projectlogo">
  <xsl:call-template name="renderlogo">
     <xsl:with-param name="name" select="$tab-logo"/>
     <xsl:with-param name="url" select="www.$tab-logo.de"/>
     <xsl:with-param name="logo" select="images/$tab-logo"/>
     <xsl:with-param name="root" select="$root"/>
     <xsl:with-param name="description"
select="$config/project-description"/>
  </xsl:call-template>
</div>

Something like that.
HTH
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)


Re[3]: Tab-related images at top of Page

Posted by Ferdinand Soethe <sa...@soethe.net>.
Could somebody perhaps give some feedback if this is a feasible way to
achieve a tab dependent image on top of a page? There was no further
comment to this thread some weeks ago.

Thanks,
Ferdinand


Ferdinand Soethe wrote:

FS> Ross Gardler wrote:

RG>> There is not already a way to accomplish this. You would need to create
RG>> your own skin and modify site2xhtml.xsl to do this.

RG>> It sounds like a pretty cool feature, please add a request to the issue
RG>> tracker, and if you do create the functionality for yourself please post
RG>> a patch there too.

FS> Perhaps I can suggest an easier way to achieve this (not that I really
FS> know what I'm writing about :-)):

FS> Looking at the finished pages I found this:

>> <div class="projectlogo">
>> <a href="http://myproj.mygroup.org/"><img class="logoImage"
>> alt="MyProject" src="images/project.png" title="MyProject
>> Description"></a>
>> </div>

FS> to be the code that provides the image at the top-center of the page.
FS> A similar section exists for the second logo.

FS> Further down I found this

FS> <ul id="tabs">
FS> <li class="current">
FS> <a class="base-selected" href="index.html">kayaking</a>
FS> </li>

FS> for the selected tab.

FS> If (and that I'm not sure of) site2xhtml created these sections, it
FS> means that it "knows" which tab is selected for this page (rather than
FS> just assembling pieces from earlier transformations).

FS> That being the case, could it not derive the Image-Sourcefilename from
FS> the id-name of the selected tab "images/kayaking.png",
FS> "images/bookcrossing.png", etc. ?

FS> A switch in skinconfig could turn this mechanism on or off so that you
FS> could either use the group/projekt system or an alternative
FS> site/tab-system of logos.


FS> --
FS> Ferdinand Soethe





--
Ferdinand Soethe