When you use the SharePoint "Promoted Links" web part on one of your pages, there is the possibility that the web part uses a lot of horizontal space because you need to display a large number of tiles.
Firstly, you’ll need to upload the JavaScript. You can download the JavaScript from here.
It is important to upload the JavaScript file to the Site Collection Master Page gallery, in the Display Templates folder.
Next, edit the web part, and scroll to the “JSLink” property, under “Miscellaneous”. Paste in JSLink property “~sitecollection/_layouts/15/sp.init.js|~sitecollection/_catalogs/masterpage/display templates/MultilinePromotedLinks.js”.
Apply the changes to your web part, and save the changes.
Firstly, you’ll need to upload the JavaScript. You can download the JavaScript from here.
It is important to upload the JavaScript file to the Site Collection Master Page gallery, in the Display Templates folder.
- Go to the Settings > Site Settings.
- Click “Master Pages”
- Click “Display Templates”
- Upload the file, ensuring it is called “MultilinePromotedLinks.js”
Next, edit the web part, and scroll to the “JSLink” property, under “Miscellaneous”. Paste in JSLink property “~sitecollection/_layouts/15/sp.init.js|~sitecollection/_catalogs/masterpage/display templates/MultilinePromotedLinks.js”.
Apply the changes to your web part, and save the changes.
No comments:
Post a Comment