Issue in getting site name in client side javascript
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2010 11:55 AM
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:
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?
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?
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2010 03:40 PM
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
The easiest way is to look at Alfresco.constants.SITE
Thanks,
Mike
