This article describes how to add iFrames within the EngageIP AdminPortal using Page Extensions.
Note |
---|
Note: Performance may be degraded when loading external data! |
Adding an iFrame to a Page
Click on the on Setup tab
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 screensCode Block language js var link = '<iframe src="http://logisense.com" width="100" height="500">'; document.getElementById("Content").innerHTML = document.getElementById("Content").innerHTML +link + '</iframe>'
Click Save
...
The following provides the code used to put an iFrame with specific content on a custom tabpage. You can specify which custom tab page to display it on (if you have multiple custom tabspages).
Creating a Custom Tab
Click on the on Setup tab
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 the on Setup tab
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)Code Block language js 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