I am trying to modify my SharePoint 2010 site so that when a user navigates to a specific folder within the default "Shared Documents" document library a notification to the user displays describing the folder/file naming convention for that particular folder. I tried adding a content editor to the page but this shows for all folders within the "Shared Documents" library. Is there a way to show this notification for a particular folder or hide it for folders not equal to the desired folder?
Update: I tried saving the following script to a text file, uploading it to my sharepoint site, and then pasting the url to the text file in the CEWP with no result.
<script language="javascript" type="text/javascript">
var url = window.location.href;
var rootFolderUrl = getQueryStringParamvalue("RootFolder");
var folderRelativeUrl = '%2Fsites%2FBusiness%5FArchitecture%2Fbusinesstransformation%2FShared%20Documents%2FTransformation%20Projects';
if(rootFolderUrl == folderRelativeUrl) {
alert("Note: Please utilize the MMM-YYYY standard naming convention when adding folders and files.")
}
</script>