Adding IFrames Using Page Exensions
This article describes how to add iFrames within the EngageIP AdminPortal using Page Extensions.
Note: Performance may be degraded when loading external data!
Adding an iFrame to a Page
Click on SetupÂ
Click Page Extensions
Click the Add button
Enter the following information:
Name - Add iframe to a page
Page - tools/menu (or any page you wish to add this to
Script - see below, same for both the add and edit screensvar link = '<iframe src="http://logisense.com" width="100" height="500">'; document.getElementById("Content").innerHTML = document.getElementById("Content").innerHTML +link + '</iframe>'
Click Save
Displaying External Content in an iFrame on a Custom Tab
The following provides the code used to put an iFrame with specific content on a custom page. You can specify which custom page to display it on (if you have multiple custom pages).
Creating a Custom Tab
Click on Setup
Click on Custom Tabs
Click Add
Enter the Name for your custom tab
Optional: if you have/will have more than one custom tab specify the sort order
Click Save and your custom tab will appear
Adding The iFrame (via a Page Extension)
Click on Setup
Click on Page Extensions
Click the Add button
Enter the following information;
Name - Display iframe on Custom Tab - xxxxx
Page - customtab/loadtab
Script - enter the script below substituting the appropriate details (your custom tab name and the URL to render in the iFrame)var regex = new RegExp("NAME_OF_CUSTOM_TAB_HERE"); if(document.URL.match(regex)) { var link = '<iframe src="http://www.youraddresshere.com" width="100" height="500">'; document.getElementById("Content").innerHTML = document.getElementById("Content").innerHTML +link; }
Click the Save button