<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Generating short description using the Content Query Web Part</title>
	<atom:link href="http://blog.mastykarz.nl/generating-short-description-content-query-web-part/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mastykarz.nl/generating-short-description-content-query-web-part/</link>
	<description>Innovation Matters &#124; SharePoint Server MVP</description>
	<lastBuildDate>Wed, 10 Mar 2010 18:39:15 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Nick Hadlee</title>
		<link>http://blog.mastykarz.nl/generating-short-description-content-query-web-part/comment-page-1/#comment-43548</link>
		<dc:creator>Nick Hadlee</dc:creator>
		<pubDate>Tue, 23 Feb 2010 19:57:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/generating-short-description-content-query-web-part/#comment-43548</guid>
		<description>Think I just had a comment #fail moment...the e.g. I meant to add was:

&lt;xsl:choose&gt;
&lt;xsl:when test=&quot;string-length($cleanContent) &gt; $Length&quot;&gt;
&lt;xsl:call-template name=&quot;Imtech.SubstringBeforeLast&quot;&gt;
&lt;xsl:with-param name=&quot;String&quot; select=&quot;substring($cleanContent, 1, $Length)&quot;/&gt;
&lt;xsl:with-param name=&quot;Char&quot; select=&quot;&#039; &#039;&quot;/&gt;
&lt;/xsl:call-template&gt;
&lt;xsl:value-of select=&quot;$Suffix&quot; disable-output-escaping=&quot;yes&quot;/&gt;  	
&lt;/xsl:when&gt;
&lt;xsl:otherwise&gt;
&lt;xsl:value-of select=&quot;$cleanContent&quot; /&gt;
&lt;/xsl:otherwise&gt;
&lt;/xsl:choose&gt;</description>
		<content:encoded><![CDATA[<p>Think I just had a comment #fail moment&#8230;the e.g. I meant to add was:</p>
<p>&lt;xsl:choose&gt;<br />
&lt;xsl:when test=&#034;string-length($cleanContent) &gt; $Length&#034;&gt;<br />
&lt;xsl:call-template name=&#034;Imtech.SubstringBeforeLast&#034;&gt;<br />
&lt;xsl:with-param name=&#034;String&#034; select=&#034;substring($cleanContent, 1, $Length)&#034;/&gt;<br />
&lt;xsl:with-param name=&#034;Char&#034; select=&#034;&#039; &#039;&#034;/&gt;<br />
&lt;/xsl:call-template&gt;<br />
&lt;xsl:value-of select=&#034;$Suffix&#034; disable-output-escaping=&#034;yes&#034;/&gt;<br />
&lt;/xsl:when&gt;<br />
&lt;xsl:otherwise&gt;<br />
&lt;xsl:value-of select=&#034;$cleanContent&#034; /&gt;<br />
&lt;/xsl:otherwise&gt;<br />
&lt;/xsl:choose&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick Hadlee</title>
		<link>http://blog.mastykarz.nl/generating-short-description-content-query-web-part/comment-page-1/#comment-43547</link>
		<dc:creator>Nick Hadlee</dc:creator>
		<pubDate>Tue, 23 Feb 2010 19:54:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/generating-short-description-content-query-web-part/#comment-43547</guid>
		<description>Used this yesterday and it worked a treat. Cheers Waldek!

One change I added in my case was to the &#039;Imtech.GenerateSummary&#039; template. A quick test to see if we need to call &#039;Imtech.SubstringBeforeLast&#039; or just output the content because for me it was cutting off on the last &#039; &#039; regardless of whether it needed to. Brilliant work cheers again.

e.g.










</description>
		<content:encoded><![CDATA[<p>Used this yesterday and it worked a treat. Cheers Waldek!</p>
<p>One change I added in my case was to the &#039;Imtech.GenerateSummary&#039; template. A quick test to see if we need to call &#039;Imtech.SubstringBeforeLast&#039; or just output the content because for me it was cutting off on the last &#039; &#039; regardless of whether it needed to. Brilliant work cheers again.</p>
<p>e.g.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Thake</title>
		<link>http://blog.mastykarz.nl/generating-short-description-content-query-web-part/comment-page-1/#comment-41786</link>
		<dc:creator>Jeremy Thake</dc:creator>
		<pubDate>Wed, 03 Feb 2010 06:19:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/generating-short-description-content-query-web-part/#comment-41786</guid>
		<description>There is no end to oyur talent mate! This script is awesome!</description>
		<content:encoded><![CDATA[<p>There is no end to oyur talent mate! This script is awesome!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Waldek Mastykarz</title>
		<link>http://blog.mastykarz.nl/generating-short-description-content-query-web-part/comment-page-1/#comment-35357</link>
		<dc:creator>Waldek Mastykarz</dc:creator>
		<pubDate>Thu, 26 Nov 2009 06:12:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/generating-short-description-content-query-web-part/#comment-35357</guid>
		<description>@Alex: I&#039;m not sure that it&#039;s a good idea to include a space in the template name. The first thing for me to try would be to remove the space and check whether it&#039;s working or not. Additionally, you can check the ULS log. The CQWP logs all XSLT errors so that you can exactly pinpoint what&#039;s causing the problems.</description>
		<content:encoded><![CDATA[<p>@Alex: I&#039;m not sure that it&#039;s a good idea to include a space in the template name. The first thing for me to try would be to remove the space and check whether it&#039;s working or not. Additionally, you can check the ULS log. The CQWP logs all XSLT errors so that you can exactly pinpoint what&#039;s causing the problems.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://blog.mastykarz.nl/generating-short-description-content-query-web-part/comment-page-1/#comment-35281</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Wed, 25 Nov 2009 16:43:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/generating-short-description-content-query-web-part/#comment-35281</guid>
		<description>Hello 

I really appreciate the posting about generating brief description as i was looking for some solution. However, I got an error when i tried to add the code to itemstyle.xsl and CQWP stop functioning correctly.

Here\&#039;s what i did.

first, i copied default template part in itemstyle.xsl and pasted it at the end. then changed name=\&quot;default\&quot; to name=\&quot;Brief Description\&quot; 

then i placed the code in this posting below the template. (i just removed Imtech. which should not be a problem)

then back to template named Brief Description, i changed 

&lt;div class=\&quot;description\&quot;&gt;
   &lt;xsl:value-of select=\&quot;@Description\&quot; /&gt;
&lt;/div&gt;

to 

&lt;div class=\&quot;description\&quot;&gt;
  &lt;xsl:call-template name=\&quot;GenerateSummary\&quot;&gt;
  &lt;xsl:with-param name=\&quot;Content\&quot; select=\&quot;@Description\&quot; /&gt;
  &lt;xsl:with-param name=\&quot;Length\&quot; select=\&quot;124\&quot; /&gt;
  &lt;xsl:with-param name=\&quot;Suffix\&quot; select=\&quot;\&#039;...\&#039;\&quot;/&gt;
  &lt;/xsl:call-template&gt;
&lt;/div&gt;

that was all of my modification.

after i saved the work and publish the xsl, i got the error. 

Could you please indicate me if i missed something or mademistakes?  

I need some guidance cause i am very new to modify xsl.

Thank you for any help in advance.</description>
		<content:encoded><![CDATA[<p>Hello </p>
<p>I really appreciate the posting about generating brief description as i was looking for some solution. However, I got an error when i tried to add the code to itemstyle.xsl and CQWP stop functioning correctly.</p>
<p>Here\&#039;s what i did.</p>
<p>first, i copied default template part in itemstyle.xsl and pasted it at the end. then changed name=\&quot;default\&quot; to name=\&quot;Brief Description\&quot; </p>
<p>then i placed the code in this posting below the template. (i just removed Imtech. which should not be a problem)</p>
<p>then back to template named Brief Description, i changed </p>
<p>&lt;div class=\&quot;description\&quot;&gt;<br />
   &lt;xsl:value-of select=\&quot;@Description\&quot; /&gt;<br />
&lt;/div&gt;</p>
<p>to </p>
<p>&lt;div class=\&quot;description\&quot;&gt;<br />
  &lt;xsl:call-template name=\&quot;GenerateSummary\&quot;&gt;<br />
  &lt;xsl:with-param name=\&quot;Content\&quot; select=\&quot;@Description\&quot; /&gt;<br />
  &lt;xsl:with-param name=\&quot;Length\&quot; select=\&quot;124\&quot; /&gt;<br />
  &lt;xsl:with-param name=\&quot;Suffix\&quot; select=\&quot;\&#039;&#8230;\&#039;\&quot;/&gt;<br />
  &lt;/xsl:call-template&gt;<br />
&lt;/div&gt;</p>
<p>that was all of my modification.</p>
<p>after i saved the work and publish the xsl, i got the error. </p>
<p>Could you please indicate me if i missed something or mademistakes?  </p>
<p>I need some guidance cause i am very new to modify xsl.</p>
<p>Thank you for any help in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Waldek Mastykarz</title>
		<link>http://blog.mastykarz.nl/generating-short-description-content-query-web-part/comment-page-1/#comment-25169</link>
		<dc:creator>Waldek Mastykarz</dc:creator>
		<pubDate>Sun, 02 Aug 2009 08:59:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/generating-short-description-content-query-web-part/#comment-25169</guid>
		<description>@Tyler: You could try to add &lt;textarea&gt;&lt;xsl :copy-of select=&quot;.&quot;/&gt;&lt;/textarea&gt; to the ContentQueryMain.xsl root template to check the retrieved XML. If the content is there but doesn&#039;t show up in the result markup, the XSLT is the problem. If the content is not in the XML however, either the item doesn&#039;t have the content or there is a problem with the CommonViewFields property.</description>
		<content:encoded><![CDATA[<p>@Tyler: You could try to add &lt;textarea&gt;&lt;xsl :copy-of select=&#034;.&#034;/&gt;&lt;/textarea&gt; to the ContentQueryMain.xsl root template to check the retrieved XML. If the content is there but doesn&#039;t show up in the result markup, the XSLT is the problem. If the content is not in the XML however, either the item doesn&#039;t have the content or there is a problem with the CommonViewFields property.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tyler</title>
		<link>http://blog.mastykarz.nl/generating-short-description-content-query-web-part/comment-page-1/#comment-25099</link>
		<dc:creator>Tyler</dc:creator>
		<pubDate>Fri, 31 Jul 2009 19:05:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/generating-short-description-content-query-web-part/#comment-25099</guid>
		<description>On a side note... this is implemented and working properly on the parent site and are utilizing the same exact style on our CQWP. And as I stated before, all of the other fields show up. Just not the text.</description>
		<content:encoded><![CDATA[<p>On a side note&#8230; this is implemented and working properly on the parent site and are utilizing the same exact style on our CQWP. And as I stated before, all of the other fields show up. Just not the text.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tyler</title>
		<link>http://blog.mastykarz.nl/generating-short-description-content-query-web-part/comment-page-1/#comment-25098</link>
		<dc:creator>Tyler</dc:creator>
		<pubDate>Fri, 31 Jul 2009 19:00:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/generating-short-description-content-query-web-part/#comment-25098</guid>
		<description>I am having troubles getting this to work on a sub site. The rest of my style shows properly but the text from the item does not seem to get pulled. Any idea what I am missing?</description>
		<content:encoded><![CDATA[<p>I am having troubles getting this to work on a sub site. The rest of my style shows properly but the text from the item does not seem to get pulled. Any idea what I am missing?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Waldek Mastykarz</title>
		<link>http://blog.mastykarz.nl/generating-short-description-content-query-web-part/comment-page-1/#comment-20427</link>
		<dc:creator>Waldek Mastykarz</dc:creator>
		<pubDate>Tue, 02 Jun 2009 18:10:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/generating-short-description-content-query-web-part/#comment-20427</guid>
		<description>@Ashfaq: CQWP works within a single Site Collection only. If you need a scope wider than that you would have to pick another solution like for example Search. While the multiple list types aren&#039;t a limitation, the Site Collection scope is definitely something you have to consider in your choice.</description>
		<content:encoded><![CDATA[<p>@Ashfaq: CQWP works within a single Site Collection only. If you need a scope wider than that you would have to pick another solution like for example Search. While the multiple list types aren&#039;t a limitation, the Site Collection scope is definitely something you have to consider in your choice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashfaq</title>
		<link>http://blog.mastykarz.nl/generating-short-description-content-query-web-part/comment-page-1/#comment-20414</link>
		<dc:creator>Ashfaq</dc:creator>
		<pubDate>Tue, 02 Jun 2009 14:03:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/generating-short-description-content-query-web-part/#comment-20414</guid>
		<description>hi.Waldek
QueryOverride property of CQWP is limmited to site collection scope.i hav to query across the whole webapplication or multiple webapplications.further i hav to fetch data from multiple list types.
Can i achieve all this with QueryOverride property?</description>
		<content:encoded><![CDATA[<p>hi.Waldek<br />
QueryOverride property of CQWP is limmited to site collection scope.i hav to query across the whole webapplication or multiple webapplications.further i hav to fetch data from multiple list types.<br />
Can i achieve all this with QueryOverride property?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
