In SharePoint 2010 and previous versions, to render a sharepoint field SPfield , you need to use XSLT. However in SharePoint 2013,things have changed very drastically which involves Client Side Rendering and hence increase the Performance of page Load.
Client Side Rendering in SP Field is made possible JSLink Property . The JSLInk property holds URL of the Javascript file which does the job of rending.You can assign JSLink to either SPField or the whole WebPart.
In this blog, I will list down the steps to apply JSLink Property through Powershell.
-
- $web = Get-SPWeb http:
- $field = $web.Fields["Status"]
- $field.JSLink = "/_layouts/15/MakeitInteractive.js"
- $field.Update($true)
Happy SharePointing :-)