2015 in review

The WordPress.com stats helper monkeys prepared a 2015 annual report for this blog.

Here’s an excerpt:

The concert hall at the Sydney Opera House holds 2,700 people. This blog was viewed about 9,300 times in 2015. If it were a concert at Sydney Opera House, it would take about 3 sold-out performances for that many people to see it.

Click here to see the complete report.

Accesing SharePoint2013 SEO fields

This is rather simple. You can the fields under each item document library or list. Look at the sample code below:

if(SPContext.Current.File != null)
seoCanonical = SPContext.Current.File.Item[“EncodedAbsUrl”] as String;
if (SPContext.Current.File.Item.Fields.ContainsField(“SeoKeywords”))
seoKeywords = SPContext.Current.File.Item[“SeoKeywords”] as String;

if (SPContext.Current.File.Item.Fields.ContainsField(“SeoMetaDescription”))
seoMetaDescription = SPContext.Current.File.Item[“SeoMetaDescription”] as String;
//var seoFields = SPContext.Current.File.Item.Fields.Cast<SPField>().Where(o => o.StaticName.ToLower().Contains(“seo”));

The field IDs are: