Question
1
Replies
837
Views
Cognizant
Posted: June 27, 2018
Last activity: July 2, 2018
Closed
Mashup : Pick the skin dynamically
Hi,
I have portal named xyz, and two different skins abc1 and abc2.
Portal xyz is displayed in Mashup, as well non mashup (standalone pega) portal.
when user login through Mashup, portal xyz need show with skin abc1 and for non mashup login need to show with skin abc2.
We are tried with pyPortalSkin param in mashup, but it is not working as expected when user open workobject in mashup.
If you're displaying an end user portal in a Mashup you should be using the following action:
data-pega-action ='OpenWorkByURL'
data-pega-action-param-query ='pyActivity=Data-Portal.ShowDesktop'
This is the only way to initialize a portal properly for display in a Mashup. It loads the users default portal as defined in their AccessGroup.
To dynamically set the skin name you would add a parameter of pzSkinName in data-pega-action-param-parameters:
data-pega-action-param-parameters="{pzSkinName:'abc1'}"
Also, if there are separate users for Mashup and normal portal access you can just define separate portal rules with their own skins using one for mashup users and one for regular portal users.