digg1-e1425586232963.jpg

Digg Your SharePoint Blog

Not sure? Please take a look at the Digg and Delicious 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…

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.

  1. Make a copy of the following file.
  2. “C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\SiteTemplates\Blog\Lists\Post\schema.xml”
  3. Open “C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\SiteTemplates\Blog\Lists\Post\schema.xml” using your favorite text editor.
  4. Refer to the steps below “For Digg.com” or “For Del.icio.us.com”
  5. 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.

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&amp;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[&amp;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 Delicious.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[&amp;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>

Chris EdwardsDigg Your SharePoint Blog

1 comment

Join the conversation
  • Bharath (@radhekrsna) - November 8, 2011 reply

    Hi Chris,

    Thanks for your article. I am now working on sharepoint 2010. can you tell me how can I do the same procedure for Facebook and twitter. or suggest me any other easy ways to do that.Please

Join the conversation

This site uses Akismet to reduce spam. Learn how your comment data is processed.