Have you ever wanted to extend your existing SharePoint "blog" site to include entry-specific links for social networking sites like Digg and Del.icio.us?
Not sure? Please take a look at the Digg and Del.icio.us sites and search on Google to learn more. The primary purpose for adding these links is to help generate traffic to your blog content.
If you want to update your existing SharePoint blog site or prepare for future blog sites to include these links, please read on…
Note: This blog post is based on the content from http://techwrap.blogspot.com/2006/03/guide-how-to-add-diggit-and-delicious.html.
Please see the image below for a sample of what we will be adding.
Here are the steps to add both Digg and Del.icio.us links to all blog entries.
- Make a copy of the following file.
Note: The path referenced here is the standard location for the "blog" site template. You may have to adjust the drive location to match your environment.
"C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\SiteTemplates\Blog\Lists\Post\schema.xml"
- Open "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\SiteTemplates\Blog\Lists\Post\schema.xml" using your favorite text editor.
- Refer to the steps below "For Digg.com" or "For Del.icio.us.com"
- Once you have completed the steps below for either Digg or Del.icio.us, you will need to perform an IISRESET
You should now be able to provision new SharePoint blog sites and/or use existing SharePoint blog sites and see the "Diggit!" and "Del.icio.us" links under each blog entry.
Enjoy J
For Digg.com
Adding the Computed Fields
Copy and Paste the following content below the closing </Field> for the Permalink field and before the <Field Name="PostedByWithDate" (should be after line 27).
|
<Field Name="Diggit" ID="{3680476B-C9A8-4ebb-AED3-B36587F54B80}" Type="Computed" ReadOnly="TRUE" DisplayName="" Sortable="FALSE" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="Diggit">
<FieldRefs>
<FieldRef Name="ID" />
<FieldRef Name="Title" />
</FieldRefs>
<DisplayPattern>
<HTML><![CDATA[<a href="]]></HTML>
<HTML><![CDATA[http://digg.com/submit?phase=3&url=]]></HTML>
<HttpVDir CurrentWeb="TRUE" /><HTML><![CDATA[/$Resources:core,lists_Folder;/$Resources:core,blogpost_Folder;/Post.aspx?ID=]]></HTML>
<Column Name="ID" URLEncode="TRUE" />
<HTML><![CDATA[&title=]]></HTML>
<Field Name="Title" />
<HTML><![CDATA[">DiggIt!</a>]]></HTML>
</DisplayPattern>
</Field> |
Adding the new Computed Fields to all of the Blog Views
Copy and Paste the following content below the closing </Case> for the Permalink field and before the <Case Value="EmailPostLink"....
|
<Case Value="Diggit">
<Field />
</Case> |
Adding the FieldRefs to all of the Blog Views
Copy and Paste the following content below the closing </FieldRef> for the Permalink field and before the <FieldRef Name="EmailPostLink">
|
<FieldRef Name="Diggit">
</FieldRef> |
For Del.icio.us.com
Adding the Computed Fields
Copy and Paste the following content below the closing </Field> for the Permalink field and before the <Field Name="PostedByWithDate" (should be after line 27).
|
<Field Name="Delicious" ID="{90CFE45B-4101-4bdf-9B58-5D2A663BE7D0}" Type="Computed" ReadOnly="TRUE" DisplayName="" Sortable="FALSE" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="Delicious">
<FieldRefs>
<FieldRef Name="ID" />
<FieldRef Name="Title" />
</FieldRefs>
<DisplayPattern>
<HTML><![CDATA[<a href="]]></HTML>
<HTML><![CDATA[http://del.icio.us/post?url=]]></HTML>
<HttpVDir CurrentWeb="TRUE" /><HTML><![CDATA[/$Resources:core,lists_Folder;/$Resources:core,blogpost_Folder;/Post.aspx?ID=]]></HTML>
<Column Name="ID" URLEncode="TRUE" />
<HTML><![CDATA[&title=]]></HTML>
<Field Name="Title" />
<HTML><![CDATA[">Del.icio.us</a>]]></HTML>
</DisplayPattern>
</Field> |
Adding the new Computed Fields to all of the Blog Views
Copy and Paste the following content below the closing </Case> for the Permalink field and before the <Case Value="EmailPostLink"....
|
<Case Value="Delicious">
<Field />
</Case> |
Adding the FieldRefs to all of the Blog Views
Copy and Paste the following content below the closing </FieldRef> for the Permalink field and before the <FieldRef Name="EmailPostLink">
|
<FieldRef Name="Delicious">
</FieldRef> |