• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1081
  • Last Modified:

removing/changing default list text if list is empty?

As we know if we have a calendar or announcement web part on a page and there are no events or announcements we'll see a message along the lines of:


----"There are currently no active announcements. To add a new announcement, click "Add new announcement" below. "
 

----"There are currently no upcoming events. To add a new event, click "Add new event" below"

If one wanted to be anal about it, and in this case we do, Is there a way to change or remove these messages?


Thanks in advance.

0
crmsharepoint
Asked:
crmsharepoint
3 Solutions
 
crmsharepointAuthor Commented:
By the way - I could've sworn that I once saw somewhere in my journeys through the 12 hive, an xml file that had this.  

Our main problem is with the phrase "to add a new event, click 'add new event'".  Reason why it's a problem is that we do not display the summary toolbar.  Mind you, I usually just populate the list with an event and bingo the problem goes away.  

However, in this case the test department is not happy with it.
0
 
mccarthybriCommented:
the issue may be if you change it in the xml it might be a global change.
0
 
Ted BouskillSenior Software DeveloperCommented:
You should be able to change the XML for that specific web part on each page.  Changes to the global XML are risky and if you do it manually an upgrade to the Sharepoint farm can wipe out your changes.  To do global changes properly you have to create a WSP (Sharepoint Deployment Solution) which is somewhat arduous.
0
 
MsShadowCommented:
As Ted says, changing anything Global will mess up things once you deploy a service pack/cumulative update.
If you want to change text, the "easier" way to do it is to create a custom masterpage, add a jQuery script to it that replace the text.
Replacing text with jquery
http://stackoverflow.com/questions/448842/replace-particular-text-after-the-page-is-loaded-with-jquery
Enabling jQuery on SharePoint
http://weblogs.asp.net/jan/archive/2008/11/20/sharepoint-2007-and-jquery-1.aspx
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now