Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Pete 213 posts 285 karma points
    Jan 31, 2012 @ 16:52
    Pete
    0

    Change table td colour/attributes if event exists

    I'd like to not show a link on a day with an event, but instead just change the day number font properties, and the td colour etc, I guess it's something like below, but not sure what to test for in the IF statement.

    <xsl:template name="createOneCell">
        <xsl:param name="cell"/>
        <td>
          
          <xsl:if test=" ???? ">
            <xsl:attribute name="class">eventfound</xsl:attribute>
          </xsl:if>
          
          <xsl:value-of select="date:dayinmonth($cell/@date)"/>
            <xsl:for-each select="$cell/event">
                <!--<a href="{umbraco.library:NiceUrl(@id)}">
                  <xsl:value-of select="umbraco.library:GetXmlNodeById(@id)/@nodeName"/>
                </a>-->
            </xsl:for-each>
        </td>
    </xsl:template>
  • Geraint Taylor 3 posts 23 karma points
    May 22, 2012 @ 17:36
    Geraint Taylor
    0

     <xsl:if test="boolean($cell/event)" >

Please Sign in or register to post replies

Write your reply to:

Draft