Do you need to insert an IFrame within your portal and you want to pass some information to your external script?
Now you can do it by installing IFrame Scoped Hook on your portal. Let's see how to do that.
First you need to download and install the hook from Liferay Marketplace: IFrame Scoped.
This hook overrides the standard behaviour of the IFrame core portlet by adding 3 new configuration parameters:
companyId
- ID of the current company
groupId
- ID of the current group
userId
- ID of the current user
Once enabled the options you want, the IFrame core portlet will ad to the URL the parameters above in order to be managed in the external script.
The extension is available on the Liferay Marketplace: IFrame Scoped