none
How to use <%$ SPTokens: xxxx %> RRS feed

  • Question

  • Hi, I saw SPUrl and in one of the master pages and i would like to know also how to really utilize SPTokens 

    Did a google search and apparently not many people really know how to use it??


    Cheng

    Friday, March 31, 2017 3:43 PM

All replies

  • For OnPremise you need to create custom expression builder like:

    https://spexpressions.codeplex.com/

    But this in not preferred because it affect performance for allowing compilation and not supported online


    Tarek Yehia

    Friday, March 31, 2017 4:51 PM
  • AH.. i See. I was wanting to have a dynamic meta tag for my master page. And apparently, SharePoint is not so SEO friendly in this domain.

    i See there is Edit SEO property but it doesnt allow adding meta tag for og:image :(


    Cheng

    Friday, March 31, 2017 4:59 PM
  • You can create custom controlto add facebook seo like

    http://stackoverflow.com/questions/5721746/add-facebook-open-graph-protocol-meta-tags-to-sharepoint

    or use the following solution:

    http://johnliu.net/blog/2013/9/10/fixing-facebook-preview-picture-of-your-sharepoint-site.html


    Tarek Yehia

    Friday, March 31, 2017 5:15 PM