-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Define Properties for Site names - MEED-2811 - Meeds-io/MIPs#100 (
#1231) This change will add JS variables to define site names: - My Craft site: which will have 'Achivements' and 'Wallet' pages - Engagement Site: which will have 'Actions', 'Programs' and 'Perkstore' pages - Default Site: all other applications will be added and referenced from default site which may be different from public site.
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
webapps/plf-sites-extension/src/main/webapp/groovy/webui/UISitesPortalApplicationHead.gtmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<% | ||
import org.exoplatform.commons.utils.PropertyManager; | ||
|
||
def rcontext = _ctx.getRequestContext() ; | ||
String engagementSite = PropertyManager.getProperty('io.meeds.engagementSite.name'); | ||
String myCraftSite = PropertyManager.getProperty('io.meeds.myCraftSite.name'); | ||
%> | ||
<script type="text/javascript" id="socialHeadScripts"> | ||
eXo.env.portal.portalName = "<%=rcontext.getPortalOwner()%>"; | ||
eXo.env.portal.defaultPortal = "<%=rcontext.getDefaultPortal()%>"; | ||
eXo.env.portal.engagementSiteName = "<%=engagementSite%>" ; | ||
eXo.env.portal.myCraftSiteName = "<%=myCraftSite%>" ; | ||
</script> |