Hi Christian,

On 19 Feb 2004, at 13:54, Christian Mayrhuber wrote:

Parameters are specified in layout/portal.xml <item>
 <item>
 �� <parameter name="width" value="99%"/>
�� <parameter name="bgcolor" value="green"/>
�� <coplet-layout name="coplet" layout-renderer-name="nowindow">
���� <coplet-instance-data>Coplet-1</coplet-instance-data>
�� </coplet-layout>
 </item>

Thanks, I see how that works now.


I've solved my problem: my window renderer is called "hangingbox" because it renders a light grey box with the title hanging out of the left of it. My hangingbox.xsl has this at the top:

<xsl:template match="window">
  <xsl:variable name="class">
    <xsl:choose>
      <xsl:when test="normalize-space(@class)">
        <xsl:text>hanging </xsl:text>
        <xsl:value-of select="normalize-space(@class)"/>
      </xsl:when>
      <xsl:otherwise>
        <xsl:text>hanging</xsl:text>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:variable>

  <div>
    <xsl:attribute name="class">
      <xsl:value-of select="$class"></xsl:value-of>
    </xsl:attribute>
    <!-- [SNIP] -->
  </div>
</xsl:template>

and if I put this in my layout:

    <item>
      <coplet-layout name="coplet" layout-renderer-name="hangingbox">
        <parameter name="class" value="yellow"/>
        <coplet-instance-data>LoginDetails-1</coplet-instance-data>
      </coplet-layout>
    </item>

Then my final HTML contains

<div class="hanging yellow">...</div>

Which is exactly what I was trying to achieve - my CSS renders this with the hanging title on a yellow background.

Thanks again for pointing me in the right direction,

Jon

PS Yes, I know "yellow" is a bad name to use for a CSS class... :-)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to