2

Is it possible to edit the default message "There are no items to show in this view of the "listname" list. To add a new item, click "New" in a simple (out of the box) way?

I would like to display a custom message if there are no items (due to the expiration of messages) shown.

Thank you for your suggestions.

3

Yes you can. By default SharePoint uses XSLT template to render list view. You can find start point in this topic.

2

As a note to folks looking for a solution to this question for Office 365 or SharePoint 2013, you can edit the message using JS Link and CSR. For details and example code see this blog post: http://www.idubbs.com/blog/2015/jslink-csr-to-override-there-are-no-items-to-show-in-this-view/

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

  • Please don’t add just a link as answer to a question. If the link breaks, the answer you provided will not be useful for future visitors. Provide an answer of your own and use the link as reference. If needed, you can block quote the content from your link. More information is found in our help center, especially How do I write a good answer – Benny Skogberg Jan 14 '15 at 9:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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