Menu Home

SharePoint 2013 add like functionality to publishing page with javascript

In SharePoint 2013 the rating functionality that can be enabled on all libraries, have been extended with a simple like/unlike functionality in addition to the 5 star rating from SP2010. Obviously this is something the customers love, as it reminds them of their well-known facebook like functionality. Unfortunately Microsoft for some reason decided to only enable the functionality directly from the page library list view, where most end users will never end up when working with publishing sites. In this post I present some javascript that can be included on a page layout to enable users to like/unlike the page directly from the page.

SharePoint xslt calculate age

This is some xslt I have been fiddling with in order to calculate the age of persons in a list from their birthday (or in fact their CPR number, the danish social security number). Unfortunately calculated columns in SharePoint doesn’t support getting today’s date, this is because their values are […]