sharepoint - How to add Promoted links web part to page and set JSLink -


i trying deploy promoted links web par default.aspx page, following article muawiyah shannak http://code.msdn.microsoft.com/office/sharepoint-2013-how-to-add-e2966a24#content cant find out how set jslink url in markup.

<div>          <webpartpages:webpartzone id="webpartzone" runat="server" frametype="none">              <webpartpages:xsltlistviewwebpart                 id="xsltlistviewarticlepromotedlist"                  runat="server"                  listurl="lists/mypromotedlinks"                  isincluded="true"                  nodefaultstyle="true"                  title="images used in switcher"                  pagetype="page_normalview"                  default="false"                  viewcontenttypeid="0x">              </webpartpages:xsltlistviewwebpart>          </webpartpages:webpartzone>      </div>  

xsltlistwebpart.jslink property sets csr file rendering list view:

<jslink>~site/siteassets/promotedlinks.js</jslink> 

where ~site url token.

please refer urls , tokens in sharepoint 2013 more details.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -