{"id":15188,"date":"2016-05-23T14:21:12","date_gmt":"2016-05-23T06:21:12","guid":{"rendered":"http:\/\/localhost\/help\/?page_id=15188"},"modified":"2019-09-24T10:27:34","modified_gmt":"2019-09-24T02:27:34","slug":"embed-page-4-3-2","status":"publish","type":"page","link":"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/embed-page\/embed-page-4-3-2\/","title":{"rendered":"Embed Page (4.3.2)"},"content":{"rendered":"\n<p class=\"left-bar\">This article applies to versions 4.3.2 and earlier of P2 Explorer.\u00a0For help on the latest version of Embed Page, see <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/embed-page\/\">Embed Page<\/a>.<\/p>\n<h3 class=\"page-subheading\">Overview<\/h3>\n<p class=\"intro-text\">The Embed Page control allows you to insert another web page into an Explorer page.<\/p>\n<p class=\"intro-text\">The following diagram shows an Embed Page control being configured to show a weather map:<\/p>\n<p><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpage.png\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1817\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpage.png\" alt=\"embedpage\" width=\"721\" height=\"424\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpage.png 721w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpage-150x88.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpage-24x14.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpage-36x21.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpage-48x28.png 48w\" sizes=\"auto, (max-width: 721px) 100vw, 721px\" \/><\/a><\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"130\"><strong>Content:<\/strong><\/td>\n<td>The URL of the web page you want to embed. The URL must be a secure https:\/\/ address. Note that you cannot embed a Google website.<\/td>\n<\/tr>\n<tr>\n<td><strong>Add Events:<\/strong><\/td>\n<td>You can add an event published by another control on the page (or set as a page default) to dynamically update the displayed web page.When you add an event, it is automatically appended to the URL. If the event needs to be added to a different position in the URL, you can manually rewrite the URL to include the event in the correct way. For example, in the following URL:<\/p>\n<p>https:\/\/weather.yahoo.com.au\/forecast\/{{region}}<\/p>\n<p>{{region}} indicates the event.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td><strong>Move Up:<\/strong><\/td>\n<td>When you embed the page, the content is automatically positioned such that the top\u00a0left of the web page sits in the top\u00a0left corner of the canvas in Studio (i.e. it is positioned at 0,0).You can reposition the content of the URL to only view a certain portion of that web page. For example, you may only want to see a portion of a larger map displayed on another site.The number of pixels to move the content up to view\u00a0the desired area.<\/td>\n<\/tr>\n<tr>\n<td><strong>Move Left<\/strong>:<\/td>\n<td>The number of pixels to move the content left to view the desired area.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div style=\"position: relative;\">\n<hr \/>\n<\/div>\n<p style=\"position: relative;\">\u00a0<\/p>\n<h3 class=\"page-subheading\"><span id=\"Tutorial\">Tutorial<\/span><\/h3>\n<div>\n<p class=\"intro-text\">The Embed Page control works best on pages with a fixed element that you want to display, such as a picture.<\/p>\n<p class=\"intro-text\">If the website you are intending to embed has a responsive layout, the browser will attempt to resize the page to fit the grid space, and the result may not be what you expect.<\/p>\n<p class=\"intro-text\">In this tutorial, we\u2019ll look at adding an embedded page that will display a weather map for Australia. We'll also look at adding some links that will let the map zoom in on a selected state.<\/p>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpage2.png\" rel=\"lightbox-1\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3494\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpage2.png\" alt=\"embedpage\" width=\"646\" height=\"509\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpage2.png 646w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpage2-150x118.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpage2-24x19.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpage2-36x28.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpage2-48x38.png 48w\" sizes=\"auto, (max-width: 646px) 100vw, 646px\" \/><\/a><\/p>\n<p class=\"intro-text\">Let\u2019s go through this process, step-by-step.<\/p>\n<hr \/>\n<h3 class=\"page-subheading\"><span id=\"Step_by_Step_Displaying_a_DatasetTable_on_a_Page\"><span id=\"Step_by_Step_Creating_a_Pivot_Table_Driven_by_a_Range_Picker_and_Entity_Selector\"><span id=\"Step_by_Step_Creating_a_Time_Menuthat_Drives_a_LineChart\">Step by Step: Displaying an Embedded Page\u00a0<\/span><\/span><\/span><\/h3>\n<p class=\"intro-text\">Before you start, open a new tab in Explorer and click the \u201cCreate a New Page in Studio Mode\u201d thumbnail. Choose the <a title=\"Grid Layout\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/grid-layout\/\">grid<\/a>\u00a0layout \u2013 you can adjust the rows and columns if you like but it\u2019s not important for this exercise.<\/p>\n<p class=\"intro-text\">You will need to adjust the configuration to suit your data at your site.<\/p>\n<p class=\"intro-text\">\u00a0<\/p>\n<p class=\"intro-text\"><strong>Step 1.\u00a0\u00a0Add the Embed Page component to the page<\/strong><\/p>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpagedrag.png\" rel=\"lightbox-2\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3496 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpagedrag.png\" alt=\"embedpagedrag\" width=\"1330\" height=\"645\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpagedrag.png 1330w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpagedrag-150x73.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpagedrag-768x372.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpagedrag-1280x621.png 1280w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpagedrag-24x12.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpagedrag-36x17.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpagedrag-48x23.png 48w\" sizes=\"auto, (max-width: 1330px) 100vw, 1330px\" \/><\/a><\/p>\n<p class=\"intro-text\">Drag and drop the Embed Page component\u00a0onto a grid cell.<\/p>\n<p class=\"intro-text\">\u00a0<\/p>\n<p class=\"intro-text\"><strong>Step 2. Configure the Embed Page component<\/strong>\u00a0<\/p>\n<\/div>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpageconfig1.png\" rel=\"lightbox-3\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-3498\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpageconfig1-800x459.png\" alt=\"embedpageconfig1\" width=\"800\" height=\"459\" \/><\/a><\/p>\n<p class=\"intro-text\">Configure the Embed Page component as follows:<\/p>\n<ul class=\"intro-text\">\n<li>Content:\u00a0https:\/\/weather.yahoo.com.au\/forecast\/<\/li>\n<\/ul>\n<p class=\"intro-text\">You will see that the web page immediately appears on the canvas. If you open the web page in a new browser tab, you will see that it looks exactly the same. However, we don't want the entire web page, we just want the map. We can do this by manipulating where we want the top left corner of the web page to start, so that it will fit in our container. Add the following configurations:<\/p>\n<ul class=\"intro-text\">\n<li>Move Up: 460<\/li>\n<li>Move Left: 25<\/li>\n<\/ul>\n<p class=\"intro-text\">\u00a0<\/p>\n<p class=\"intro-text\"><strong>Preamble for the Next Step: How to Change the URL to Display Different Parts of the Map<\/strong><\/p>\n<p class=\"intro-text\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3499\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpageurl.png\" alt=\"embedpageurl\" width=\"654\" height=\"287\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpageurl.png 654w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpageurl-150x66.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpageurl-24x11.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpageurl-36x16.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpageurl-48x21.png 48w\" sizes=\"auto, (max-width: 654px) 100vw, 654px\" \/><\/p>\n<p class=\"intro-text\">Let's go back to that URL in the <strong>browser tab<\/strong> you just opened. You'll notice that above the map, there is a set of links to the states of Australia. When you click on a state, you will notice that not only does the map change, but the URL itself also changes. For example, if you click on QLD, the URL changes to\u00a0<em>https:\/\/weather.yahoo.com.au\/forecast\/<strong>qld<\/strong><\/em>. In the next step, we want to tap into that last portion of the URL and create an event that changes that.\u00a0<\/p>\n<ul class=\"intro-text\">\n<li>For now, click through the different states and take note of how the URL changes with each state. We will be taking advantage of this in the next step.<\/li>\n<\/ul>\n<p class=\"intro-text\">\u00a0<\/p>\n<p class=\"intro-text\"><strong>Step 3. Add events<\/strong><\/p>\n<p class=\"intro-text\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3497 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpageconfig.png\" alt=\"embedpageconfig\" width=\"1118\" height=\"642\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpageconfig.png 1118w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpageconfig-150x86.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpageconfig-768x441.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpageconfig-24x14.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpageconfig-36x21.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpageconfig-48x28.png 48w\" sizes=\"auto, (max-width: 1118px) 100vw, 1118px\" \/><\/p>\n<p class=\"intro-text\">In the \"Add Events\" setting of the Embed Page component, type <em><strong>region<\/strong> <\/em>and then click the Add button. You will see it being added to the Content URL, enclosed in double curly brackets.<\/p>\n<p class=\"intro-text\">\u00a0<\/p>\n<p class=\"intro-text\"><strong>Step 4. Add an Option Links component<\/strong><\/p>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedoptionlinks.png\" rel=\"lightbox-4\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3500 size-full\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedoptionlinks.png\" alt=\"embedoptionlinks\" width=\"1334\" height=\"744\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedoptionlinks.png 1334w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedoptionlinks-150x84.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedoptionlinks-768x428.png 768w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedoptionlinks-1280x714.png 1280w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedoptionlinks-24x13.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedoptionlinks-36x20.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedoptionlinks-48x27.png 48w\" sizes=\"auto, (max-width: 1334px) 100vw, 1334px\" \/><\/a><\/p>\n<p class=\"intro-text\">Drag and drop the <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/option-links\/\">Option Links<\/a> component onto the page, and configure it as follows:<\/p>\n<ul class=\"intro-text\">\n<li>Option Values: (List) wa, vic, qld, sa<\/li>\n<li>Option Names: (List) WA, VIC, QLD, SA<\/li>\n<li>Selected Option: region<\/li>\n<\/ul>\n<p class=\"intro-text\">\u00a0<\/p>\n<div>\n<p class=\"intro-text\"><strong>Step 5. All done!\u00a0\u00a0<\/strong><\/p>\n<p class=\"intro-text\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpagewa.png\" rel=\"lightbox-5\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3501\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpagewa.png\" alt=\"embedpagewa\" width=\"647\" height=\"511\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpagewa.png 647w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpagewa-150x118.png 150w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpagewa-24x19.png 24w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpagewa-36x28.png 36w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/embedpagewa-48x38.png 48w\" sizes=\"auto, (max-width: 647px) 100vw, 647px\" \/><\/a><\/p>\n<p class=\"intro-text\">Great work! You now have a fully functioning embedded page\u00a0that changes depending on the option selected by the user.<\/p>\n<ul class=\"intro-text\">\n<li>Click the preview\u00a0<a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/03\/preview.png\" rel=\"lightbox[1419] lightbox-6\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2896\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/03\/preview.png\" alt=\"preview\" width=\"13\" height=\"14\" \/><\/a>\u00a0button on the Studio toolbar\u00a0to see what your page\u00a0will look like in run-time.<\/li>\n<li>Click through the different states to see the map change.<\/li>\n<\/ul>\n<p class=\"intro-text\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1348\" src=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/save.png\" alt=\"save\" width=\"48\" height=\"53\" srcset=\"https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/save.png 48w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/save-22x24.png 22w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/save-33x36.png 33w, https:\/\/oihelp.corporate.ifs.com\/help\/wp-content\/uploads\/2015\/02\/save-43x48.png 43w\" sizes=\"auto, (max-width: 48px) 100vw, 48px\" \/>\u00a0Don\u2019t forget to <a title=\"Saving Your Page\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-create-your-first-page\/saving-your-page\/\">save your page<\/a>!<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The Embed Page control allows you to insert another web page into an Explorer page. This article describes how to configure an Embed Page component, and applies to versions 4.3.2 and earlier of P2 Explorer.<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-explorer\/explorer-studio\/controls\/embed-page\/embed-page-4-3-2\/\">Read more<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":4646,"parent":1813,"menu_order":1,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":"","_members_access_role":[],"_members_access_error":""},"categories":[11],"tags":[132,131],"class_list":["post-15188","page","type-page","status-publish","has-post-thumbnail","hentry","category-tutorial","tag-embed-page","tag-iframe","Product-ex"],"_links":{"self":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/15188","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/comments?post=15188"}],"version-history":[{"count":2,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/15188\/revisions"}],"predecessor-version":[{"id":44619,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/15188\/revisions\/44619"}],"up":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/1813"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media\/4646"}],"wp:attachment":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media?parent=15188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/categories?post=15188"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/tags?post=15188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}