Monday, February 7, 2011

Retrieve Web part Title in Contentquerymain.xsl

To retrieve webpart title in Contentquerymain.xsl, You can use Feed Title web part property, that if not set is equal to web part Title; to achieve this you need to add
<xsl:param name="FeedTitle" />
to your custom ContentQueryMain.xsl in the params section.
Doing this the param FeedTitle will contain the web part Title and can be used inside xsl as below code
<xsl:value-of select="$FeedTitle"/>

Thanks!
Avinash