I've got the following code in the ContentQueryMain.xsl file, in the OuterTemplate.Empty template:
<div id="linkitem"> No items are currently available. </div>
On my site, we are using 2 of these on the home page of each subsite, for 2 different Lists, one being Announcements. I'd like that wording for one and then, if it has the word 'Announcements' in the Title of the web part, I'd like it to say:
"There are no announcements at this time"
First of all - can this be done?
If so, how?
<xsl:call-template name="OuterTemplate.GetTitle">
<xsl:choose>
<xsl:when test="not(@Title = 'Words From the Chair')"
No items are currently available. </xsl:when> <xsl:otherwise> No Announcenents are currently available. </xsl:otherwise> </xsl:choose>
- Edited by Elmo Watson 14 hours 57 minutes ago