Tokens Archives : Binary Bits https://blog.binarybits.net/tag/tokens/ Bits & Pieces - A blog by Kannan Balasubramanian Wed, 17 May 2017 03:57:41 +0000 en-GB hourly 1 https://wordpress.org/?v=6.5.2 JSLink URL Tokens in SharePoint https://blog.binarybits.net/jslink-url-tokens-in-sharepoint/ https://blog.binarybits.net/jslink-url-tokens-in-sharepoint/#respond Wed, 17 May 2017 03:54:15 +0000 https://blog.binarybits.net/?p=855 Following are some of the JSLink URL Tokens I have come across in SharePoint. ~site – reference to the current SharePoint site (or “Web”) ~sitecollection – reference to the current SharePoint site collection (or “Site”) ~layouts – version specific reference to the web application Layouts folder (so it will automatically swap out /_layouts/14 or /_layouts/15 […]

The post JSLink URL Tokens in SharePoint appeared first on Binary Bits.

]]>
Following are some of the JSLink URL Tokens I have come across in SharePoint.

  • ~site – reference to the current SharePoint site (or “Web”)
  • ~sitecollection – reference to the current SharePoint site collection (or “Site”)
  • ~layouts – version specific reference to the web application Layouts folder (so it will automatically swap out /_layouts/14 or /_layouts/15 for you)
  • ~sitecollectionlayouts – reference to the layouts folder in the current site collection (e.g. /sites/team/_layouts/15)
  • ~sitelayouts – reference to the layouts folder in the current site (e.g. /sites/teams/subsite/_layouts/15)

Few Examples:

~sitecollection/_catalogs/masterpage/
~site/siteassets/
~layouts/reputation.js

Source: https://www.martinhatch.com/2013/08/jslink-and-display-templates-part-1.html

The post JSLink URL Tokens in SharePoint appeared first on Binary Bits.

]]>
https://blog.binarybits.net/jslink-url-tokens-in-sharepoint/feed/ 0