cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in getting site name in client side javascript

ganmaku
Champ on-the-rise
Champ on-the-rise
Hi Team,

I want to get current site name from the "tomcat\webapps\share\components\object-finder\object-finder-min.js" file.

Hence I have added siteId as below:

   YAHOO.extend(Alfresco.ObjectFinder,Alfresco.component.Base,
                              {
                                 options:
                                 {
                                    siteId: "",
                                    objectRenderer:null,
                                    currentValue:"",
                                    itemType:"cm:content",

But when I am trying to access through "this.options.siteId", I am getting empty value.

Could you please tell me where I committed the mistake?
1 REPLY 1

mikeh
Star Contributor
Star Contributor
You've not populated the options with the actual siteId, hence it stays empty!

The easiest way is to look at Alfresco.constants.SITE

Thanks,
Mike