Umm immediately, it came to my mind that some JQuery Script could be used.
On MSDN a contributor posted how to find and empty this TD cell that is outputted by SharePoint 2007.
The jquery line (by Diego Hidalgo):
$("td:contains('There are no items to show in this view '):last").empty();
--------------------------------------------------------------------------------
Juan Pablo. http://surpoint.blogspot.com/
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/fc3d96d1-b991-40b7-9bf7-f7b3bb3bd5fc/there-are-no-items-to-show-in-this-view-how-to-remove-this-massage-from-listview-webpart-created?forum=sharepointcustomizationlegacy
Did a bit more research and found using the Text("") method, it can effectively do a find and replace of the whole string.
Just wack something like this into a CEWP and voila
<script type="text/javascript">
$("td:contains('There are no items to show in this view of the \"Upcoming Major Events\" list. To create a new item, click \"New\" above.'):last").text("Please \"Enter Your Texts\"
below.");
</script>
Remember to also include JQuery Code declaration like below. And in
<script type="text/javascript">
//check if jQuery already exists
if(typeof jQuery=="undefined"){
//set the path to the jQuery library to use
//var jQPath="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/";
//if internet then its this file
var jQPath="/yourDocsLocation/";
//jquery-1.3.2.min.js
//add the reference to the page and evaluate
document.write("<script src='",jQPath,"jquery-1.3.2.min.js' type='text/javascript'><\/script>");
}
</script>
No comments:
Post a Comment