0

Environment: Sharepoint 2013 (on premise)

I want to show a custom message "more info " at the bottom of a list webpart.

Tried by adding a custom message in a Content Editor on the list page at the bottom, but doesn't shows on the WebPart.

I guess jQuery can do the job, Please suggest.

1 Answer 1

1

if it is on list view you have override with context,

(function () {    

var overrideCtx = {};
overrideCtx.Templates = {};
overrideCtx.Templates.Footer = "Your message"; 
SPClientTemplates.TemplateManager.RegisterTemplateOverrides(overrideCtx);})();
22
  • Do i need it in script editor on the list page for the effectcto appear on the list webpart on home page?
    – Jason
    Jun 1, 2016 at 12:46
  • If you are adding to home page 1) if you add directly to home page it applies to all list views on the page 2) you use as JS link attritube on the list view app part by adding the above script in seperate JS file
    – Shiva
    Jun 2, 2016 at 7:17
  • I added the script to a js file and mapped it to in the JS link section of my List Webpart. Here is the script file, screenshot to confirm for the file format and code is correct - imgur.com/kEk9ynw However, its not working, doesnt show any message at the bottom of the webpart. Kindly assist.
    – Jason
    Jun 2, 2016 at 8:14
  • updated JS Code file image: imgur.com/GZarq4J
    – Jason
    Jun 2, 2016 at 8:23
  • As per article: learningsharepoint.com/2013/04/13/… suggests, ( JS Link Override will not work if you are using the Custom List Form (i.e. it is edited in SharePoint Designer). Is that correct? Also I have changed the js file with only your code and script tags Still the same. Referring further to article: jsuhail.blogspot.com.au/2014/09/… It seems it should work. In order to be clear for Javascript on my SPS 2013 is working, added to another pg still the same
    – Jason
    Jun 2, 2016 at 9:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.