CQWP ContentQueryMain Style - how to detect Title

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?

I tried the following, but it errors out:
   <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>





August 15th, 2014 3:13pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics