i still have a hard time understanding maybe if i show my code you could me further:
Here is my created itemstyle.xsl from sharepoint,all the data displayed are taken from my calendar list by edditing the commonviewfields of the content web part:
<xsl:template name="CalendarStyle" match="Row[@Style='CalendarStyle']" mode="itemstyle">
<xsl:variable name="SafeImageUrl">
<xsl:call-template name="OuterTemplate.GetSafeStaticUrl">
<xsl:with-param name="UrlColumnName" select="'ImageUrl'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="SafeLinkUrl">
<xsl:call-template name="OuterTemplate.GetSafeLink">
<xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="DisplayTitle">
<xsl:call-template name="OuterTemplate.GetTitle">
<xsl:with-param name="Title" select="@Title"/>
<xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="LinkTarget">
<xsl:if test="@OpenInNewWindow = 'True'" >_blank</xsl:if>
</xsl:variable>
<xsl:variable name="Date">
<xsl:value-of select="ddwrt:FormatDateTime(string(@Date) ,1033 ,'dd')" />
</xsl:variable>
<xsl:variable name="StringDate">
<xsl:value-of select="ddwrt:FormatDateTime(string(@Date) ,1033,'MMMM')" />
</xsl:variable>
<xsl:variable name="CurrentDate">
<xsl:value-of select="ddwrt:FormatDateTime(string(ddwrt:Today()) , 1033, 'MMMM')"/>
</xsl:variable>
<xsl:if test="string-length($SafeImageUrl) != 0">
<div class="image-area-left">
<a href="{$SafeLinkUrl}" target="{$LinkTarget}">
<img class="image-fixed-width" src="{$SafeImageUrl}" alt="{@ImageUrlAltText}"/>
</a>
</div>
</xsl:if>
<xsl:variable name="Author">
<xsl:call-template name="OuterTemplate.GetGroupName">
<xsl:with-param name="GroupName" select="@Author"/>
<xsl:with-param name="GroupType" select="'User'"/>
</xsl:call-template>
</xsl:variable>
<div id="linkitem" class="item">
<div class="link-item">
<xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate "/>
<html>
<table>
<body>
<a href="{$SafeLinkUrl}" target="{$LinkTarget}" title="{@LinkToolTip}">
<xsl:if test=" ddwrt:FormatDateTime(string(ddwrt:Today()), 1033, 'MMMM') = ddwrt:FormatDateTime(string(@Date) ,1033 ,'MMMM') ">
<tr>
<tr>
<td>
<a href="#)" title="Go to the previous month"><</a>
</td>
<td>
<xsl:value-of select="$CurrentDate"/>
</td>
<td>
<a href="#" title="Go to the next month">></a>
</td>
</tr>
<td>
<xsl:value-of select="$Date"/>
</td>
<td>
<xsl:value-of select="'|'"/>
</td>
<td>
<xsl:value-of select="$DisplayTitle"/>
</td>
<td>
<xsl:value-of select="substring(@DisplayTitle, 1 , 30)" disable-output-escaping="yes"/>
<a href="{$SafeLinkUrl}" target="$LinkTarget" title=">">></a>
</td>
</tr>
</xsl:if>
</a>
</body>
</table>
</html>
</div>
</div>
</xsl:template>
with this code, my output is such for the month of august with 3 events:
< August >
07 | Success of development! >
< August >
10 | The testing peroid >
< August >
17 | Continue Development >
i'm really having a hard time since this is my first try at this. my desired output should be like this:
< August >
07 | Success of development! >
10 | The testing peroid >
17 | Continue Development >
can you please help me with my code? it's really frustrating that i can't figure this out? thank you so much... i also need to navigate between months... you're help and guidance is very much appreciated... i'd really like to learn this stuff...
|