<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Jackie Bodine: SharePoint Blog : Blogs</title><link>http://blogs.msdn.com/jackiebo/archive/tags/Blogs/default.aspx</link><description>Tags: Blogs</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Lookup (Count Related) – The magic behind SharePoint’s # Comments Column</title><link>http://blogs.msdn.com/jackiebo/archive/2007/02/23/lookup-count-related-the-magic-behind-sharepoint-s-comments-column.aspx</link><pubDate>Fri, 23 Feb 2007 20:11:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1748212</guid><dc:creator>Jackie Bodine</dc:creator><slash:comments>12</slash:comments><comments>http://blogs.msdn.com/jackiebo/comments/1748212.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jackiebo/commentrss.aspx?PostID=1748212</wfw:commentRss><wfw:comment>http://blogs.msdn.com/jackiebo/rsscomments.aspx?PostID=1748212</wfw:comment><description>&lt;P&gt;When we were designing blogs in SharePoint, we didn't just want to build a great blog, we wanted to build a great blog using the platform capabilities the SharePoint provides. &lt;/P&gt;
&lt;P&gt;One of the new platform features we built to support blogs is the Lookup (Count Related) Column type. A lookup count column is a special type of computed field that computes the number of items in the target list that point to the current item. &lt;/P&gt;
&lt;P&gt;Here's how it works for blogs: &lt;/P&gt;
&lt;P&gt;The Comments list has a column called "Post Title" which is a Lookup to the Posts list. &lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;IMG title="Post Title Column" style="WIDTH: 570px; HEIGHT: 443px" height=443 alt="Post Title Column" src="http://jackiebo.officeisp.net/blog/Lists/Photos/022307_1710_LookupCount1.png" width=570 mce_src="http://jackiebo.officeisp.net/blog/Lists/Photos/022307_1710_LookupCount1.png"&gt;&lt;/P&gt;
&lt;P&gt;The Posts list has a column called "# Comments" which is a Lookup to the Comments list. SharePoint knows that Post Title is a lookup to the current list, and so it displays the option to make this a Count Related column. &lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;IMG title="Lookup Count Column" style="WIDTH: 553px; HEIGHT: 430px" height=430 alt="Lookup Count Column" src="http://jackiebo.officeisp.net/blog/Lists/Photos/022307_1710_LookupCount2.png" width=553 mce_src="http://jackiebo.officeisp.net/blog/Lists/Photos/022307_1710_LookupCount2.png"&gt;&lt;/P&gt;
&lt;P&gt;You can use this functionality in your sites anywhere you want to count up the number of items that lookup to the current item. &lt;/P&gt;
&lt;P&gt;A great place this would be useful is if you wanted to create a podcast or screencast blog. The default SharePoint blog does not support enclosures in the RSS feed, but SharePoint document libraries do support enclosures. You could create a document library for your posts, where the document is the sound or video file. You could then enable comments by creating a comment list that looks up to the library, and a lookup count column that points back to the comments list. &lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;IMG title="RSS Settings" style="WIDTH: 492px; HEIGHT: 486px" height=486 alt="RSS Settings" src="http://jackiebo.officeisp.net/blog/Lists/Photos/022307_1710_LookupCount3.png" width=492 mce_src="http://jackiebo.officeisp.net/blog/Lists/Photos/022307_1710_LookupCount3.png"&gt;&lt;/P&gt;
&lt;P&gt;The other interesting RSS setting for document libraries is "Link RSS items directly to their files". When this is set to No, the link will go to the display form for the document library item. When it is set to Yes, the link will go to the document.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1748212" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jackiebo/archive/tags/Blogs/default.aspx">Blogs</category></item></channel></rss>