Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > JavaScript Site Identifier View modes: 
User avatar
Member
Member
jpk - 3/17/2009 11:38:38 AM
   
JavaScript Site Identifier
Is there a JavaScript variable that identifies a site by name (the name in app_themes)? I have a .js file in which I would like to point to the app_themes folder of the current site in order to pull in another resource.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 3/18/2009 6:06:40 AM
   
RE:JavaScript Site Identifier
Hello,

The only way to do that is to generate a part of the javascript dynamically. You would generate a line e.g.:

...
var siteName = "retrieveName through API"
...


Best Regards,
Boris Pocatko

User avatar
Member
Member
jpk - 3/18/2009 8:13:41 AM
   
RE:JavaScript Site Identifier
I was interested in knowing if there was already a javascript variable available that is consistently loaded on pages. If not, I'll create one using this.Page.Theme.

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 3/20/2009 8:14:20 AM
   
RE:JavaScript Site Identifier
Hello,

Unfortunately, there is no built-in javascript variable with site identifier.

Best Regards,

Martin Dobsicek