I want to create a dashlet where content administrator can see all the content created by all others in all the web projects as a list so that administrator can see list of all the documents.
Look in the configuration of your dashboard and add the "document list", is it what you want ?
I tried to change both "MyDocs.ServiceContext" & "MyDocs.Home" here , tried these to give path of companyhome like "home=companyhome.childByNamePath["Web Projects/creatorprj"]>" or "home=companyhome.nodeByReference["workspace://SpacesStore/dba6e0f6-466d-498a-a277-9cecdf7de655"]" for particular web project or using xpath query like "home=companyhome.childrenByXPath["*[@cm:name='Web Projects']" in ftl file & tried to change"MyDocs.ServiceContext=http://localhost:8080/alfresco/service/sample/avm/stores" to set it to avm stores but it is not showing any content from any of the web projects.What i have observed is that it is not able to get the contents from web projects as web project have a definite structure & sandboxes & these are dynamic.Correct me if i am wrong!!So how can i get the content related to web projects.
Is there any other web script we can use or any way to modify the original one to get desired results or do we need to create a new script.
I am not sure if you have visited this page. I think this is what you are trying to do.
http://wiki.alfresco.com/wiki/Web_Scripts_Examples - See section WCM Store List and WCM Folder Browse Example.
Company Home is used only for DM Space and not for Alfresco WCM Stores.
The following webscript mentioned in WCM Store List will show you all the stores present.
It will list down all existing store. This list will include User Sand box as well so its upto you whether you want to monitor user sand box activity or activity within Staging Sandbox. I think Looking under ROOT ie Staging would suffice your requirement.
You need to iterate over each store and build your logic to display items under each store.
One such example is given right in WCM Folder Browse Example.
If you need any more help just let me know. But I think this should achieve your objectives.