{"id":17859,"date":"2022-07-19T01:13:24","date_gmt":"2022-07-19T05:13:24","guid":{"rendered":"https:\/\/pacificopencourses.col.org\/edt4ol\/?page_id=17859"},"modified":"2022-07-19T01:13:24","modified_gmt":"2022-07-19T05:13:24","slug":"embed-h5p-object","status":"publish","type":"page","link":"https:\/\/pacificopencourses.col.org\/edt4ol\/learning-challenges\/authoring-a-learning-sequence\/embed-h5p-object\/","title":{"rendered":"Embed H5P object"},"content":{"rendered":"<div id=\"content\" class=\"mw-body container\" role=\"main\">\n<div class=\"row\">\n<div class=\"col-md-12\">\n<div class=\"panel\">\n<div class=\"panel-body\">\n<div id=\"bodyContent\">\n<div id=\"mw-content-text\" lang=\"en\" dir=\"ltr\" class=\"mw-content-ltr\">\n<div class=\"floatright\"><a href=\"https:\/\/wikieducator.org\/File:Old_and_young_technology.jpeg\" class=\"image\"><img loading=\"lazy\" decoding=\"async\" alt=\"Old and young technology.jpeg\" src=\"\/\/wikieducator.org\/images\/thumb\/7\/74\/Old_and_young_technology.jpeg\/400px-Old_and_young_technology.jpeg\" width=\"400\" height=\"258\" class=\"img-responsive\"><\/a><\/div>\n<p><br style=\"clear:both;\"><\/p>\n<p>Previously in this course, you learned how to author <a href=\"\/edt4ol\/learning-challenges\/interactive-learning-with-h5p\/overview\" title=\"EDT4OL\/H5P\/Overview\">interactive H5P objects<\/a> in your personal blog site and embed them in a blog post. In this section, you will learn how to use wiki markup to embed the H5P objects you authored in your <b>course site<\/b> instead.\n<\/p>\n<div class=\"panel iDevice\">\n\t<div class=\"panel-heading idevice-heading\">\n\t\t<div>\n\t\t\t<img decoding=\"async\" class=\"pedagogicalicon\" alt=\"preknowledge\" src=\"https:\/\/pacificopencourses.col.org\/edt4ol\/wp-content\/themes\/oeru-course\/idevices\/Icon_preknowledge.png\">\n\t\t<\/div>\n\t\t<div>\n\t\t\t<h2>Four things you will need<\/h2>\n\t\t<\/div>\n\t<\/div>\n\t<div class=\"panel-body\">\n\t\t<div class=\"col-md-12\">\n\t\t\t<\/p>\n<p>You will need four pieces of information to embed your H5P object on your WordPress course site:\n<\/p>\n<ol>\n<li> The <a href=\"\/edt4ol\/learning-challenges\/interactive-learning-with-h5p\/adding-h5p-to-a-blog-post\" title=\"EDT4OL\/H5P\/H5P blog post\">ID number<\/a> of an H5P object you authored previously on your WordPress blog site. It is the number contained within the shortcode used to embed an H5P object on your blog site. The ID number is &#8220;1&#8221; in the following shortcode example: <a href=\"https:\/\/wikieducator.org\/File:H5P_-shortcode.png\" class=\"image\"><img loading=\"lazy\" decoding=\"async\" alt=\"H5P -shortcode.png\" src=\"\/\/wikieducator.org\/images\/thumb\/c\/c9\/H5P_-shortcode.png\/120px-H5P_-shortcode.png\" width=\"120\" height=\"19\" class=\"img-responsive\"><\/a>\n<\/li>\n<li> The base url of the WordPress Multisite where your personal blog is hosted. For students taking this course, the base URL is: <code>https:\/\/edt4ol.oerfoundation.org<\/code>\n<\/li>\n<li>The subsite component of your personal blog site URL on the WordPress Multisite. For students taking this course, the subsite is: <code><i>username<\/i>-blog<\/code>. (Substitute the username in italics with your WordPress username on the https:\/\/edt4ol.oerfoundation.org website).\n<\/li>\n<li>The wiki template markup text to embed an H5P object &#8211; See below.\n<\/li>\n<\/ol>\n<p>\n<\/p>\n<p>\n\t\t<\/div>\n\t<\/div>\n<\/div>\n<p>\n<\/p>\n<h2><span class=\"mw-headline\" id=\"H5P_wiki_template_markup\">H5P wiki template markup<\/span><\/h2>\n<p>The wiki text below will embed an H5P object which has &#8216;h5pid&#8221; number &#8220;1&#8221; and which is hosted on the user&#8217;s &#8216;mackiwg-blog&#8217; sub-site of the https:\/\/edt4ol.oerfoundation.org web site.\n<\/p>\n<pre>{{WEH5P\n|h5pid=1\n|host=https:\/\/edt4ol.oerfoundation.org\n|subsite=<i>mackiwg<\/i>-blog\n|subdir=\n|style=font-weight: bold;\n|height=200px\n|width=100%\n|classes=class1 class2\n|cssid=id1\n}}\n<\/pre>\n<p>For security reasons, the template will be displayed <i>in WikiEducator<\/i> as a static text box similar to the image below; you will not see the H5P object itself in the wiki.<sup id=\"cite_ref-1\" class=\"reference\"><a href=\"#cite_note-1\">[1]<\/a><\/sup> However, after publishing a snapshot to the user&#8217;s course site, the original H5P object with its interactivity will be rendered on the WordPress site.\n<\/p>\n<div class=\"floatleft\"><a href=\"https:\/\/wikieducator.org\/File:H5P-wiki-textbox.png\" class=\"image\"><img loading=\"lazy\" decoding=\"async\" alt=\"H5P-wiki-textbox.png\" src=\"\/\/wikieducator.org\/images\/thumb\/e\/e6\/H5P-wiki-textbox.png\/1024px-H5P-wiki-textbox.png\" width=\"1024\" height=\"253\" class=\"img-responsive\"><\/a><\/div>\n<p><br style=\"clear:both;\"><\/p>\n<h4><span class=\"mw-headline\" id=\"Notes\">Notes<\/span><\/h4>\n<p>For this course, there are only two parameters you will need to change:\n<\/p>\n<ol>\n<li> The h5pid number for the object you authored on your blog site for inclusion on the published course site\n<\/li>\n<li> Your personal username for the subsite parameter, for example replacing the following text displayed in italics with your <b>own<\/b> username on the blog site where you authored the original H5P object: <i>mackiwg<\/i>-blog (&#8216;mackiwg&#8217; is the username in this example).\n<\/li>\n<\/ol>\n<h2><span class=\"mw-headline\" id=\"Incorporating_an_H5P_object_within_a_pedagogical_template\">Incorporating an H5P object within a pedagogical template<\/span><\/h2>\n<p>It is possible to incorporate your H5P object within a <a href=\"\/edt4ol\/learning-challenges\/intermediate-wiki-skills\/pedagogical-templates\" title=\"EDT4OL\/Intermediate wiki skills\/Pedagogical templates\">pedagogical template<\/a>. This is useful if you want to provide specific instructions or guidelines for learners relating to your interactive H5P object. You can use the following wiki text:\n<\/p>\n<pre>{{IDevice\n|theme=line\n|type=Activity\n|title=\n|body=Replace this text with instructions to learners for your H5P object\n{{WEH5P\n|h5pid=\n|host=https:\/\/edt4ol.oerfoundation.org\n|subsite=<i>username<\/i>-blog\n|subdir=\n|style=font-weight: bold;\n|height=200px\n|width=100%\n|classes=class1 class2\n|cssid=id1\n}}\n}}\n<\/pre>\n<div class=\"panel iDevice\">\n\t<div class=\"panel-heading idevice-heading\">\n\t\t<div>\n\t\t\t<img decoding=\"async\" class=\"pedagogicalicon\" alt=\"activity\" src=\"https:\/\/pacificopencourses.col.org\/edt4ol\/wp-content\/themes\/oeru-course\/idevices\/Icon_activity.png\">\n\t\t<\/div>\n\t\t<div>\n\t\t\t<h2>Activity<\/h2>\n\t\t<\/div>\n\t<\/div>\n\t<div class=\"panel-body\">\n\t\t<div class=\"col-md-12\">\n\t\t\t<\/p>\n<p><b>Use wiki markup to embed an H5P interactive object on a published course site on WordPress<\/b>\n<\/p>\n<ol>\n<li> <b>Identify the ID number of your H5P object<\/b>\n<ul>\n<li> Go to your personal blog site on WordPress where you previously <a href=\"\/edt4ol\/learning-challenges\/interactive-learning-with-h5p\/adding-h5p-to-a-blog-post\" title=\"EDT4OL\/H5P\/H5P blog post\">authored H5P objects<\/a>\n<\/li>\n<li> Your blog site URL will be in the form of: <code>https:\/\/edt4ol.oerfoundation.org\/<i>username<\/i>-blog<\/code> (Replace the &#8216;username&#8217; displayed in italics with your username on the site.)\n<\/li>\n<li> Log in to your blog site by adding &#8216;wp-admin&#8217; to the suffix of your blog site\n<\/li>\n<li> Go to your &#8216;Dashboard&#8217;, then click the &#8216;H5P Content&#8217; link under the &#8216;Dashboard&#8217; navigation, and select the &#8216;All H5P Content&#8217; option.\n<\/li>\n<\/ul>\n<\/li>\n<li>Choose one of your existing H5P objects for inclusion in your learning pathway and find its shortcode to identify its ID number. It will be a numeric integer number.\n<\/li>\n<li> <b>Use wiki template markup for embedding the H5P object on a WordPress course site<\/b>:\n<ul>\n<li> Go to the sub-page linked from your <a href=\"\/edt4ol\/learning-challenges\/snapshot-process\/wiki-sub-pages\" title=\"EDT4OL\/Snapshot\/Wiki subpages\">course outline page<\/a> in the wiki where you plan to insert the H5P object, and open this in edit view.\n<\/li>\n<li> Copy and paste the appropriate wiki template text above into the sub-page where you will insert the H5P object.\n<ul>\n<li> For inserting an H5P object anywhere on the wiki page use the <a href=\"#H5P_wiki_template_markup\">H5P wiki template markup<\/a>\n<\/li>\n<li> For inserting the H5P object to display within a pedagogical template use the wiki markup for <a href=\"#Incorporating_an_H5P_object_within_a_pedagogical_template\">Incorporating an H5P object within a pedagogical template<\/a>.\n<\/li>\n<li> Remember to save your wiki page.\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li> <b>Edit the following parameters of the wiki H5P embed template<\/b>\n<ul>\n<li> <code>h5pid=<\/code>: Insert the ID number for your H5P object\n<\/li>\n<li> <code>subsite=<\/code>: Specify the subsite for your personal blog site in the form of <code><i>username<\/i>-blog<\/code> (Substitute <i>username<\/i> in italics with your username on the https:\/\/edt4ol.oerfoundation.org site).\n<\/li>\n<li> If you are incorporating your H5P wiki template within a pedagogical template, edit the text for the <code>body=<\/code> parameter.\n<\/li>\n<\/ul>\n<\/li>\n<li> <b>Request<\/b> a snapshot of your &#8216;Outline&#8217; page\n<ul>\n<li> Log in to WikiEducator or check that your wiki session is current.\n<\/li>\n<li> Remember to use your <a href=\"\/edt4ol\/learning-challenges\/snapshot-process\/components-of-the-snapshot-process\" title=\"EDT4OL\/Snapshot\/Outline page\">WordPress username and password<\/a>\n<\/li>\n<li> Wait a few minutes for the snapshot script to complete the conversion of wiki pages for WordPress\n<\/li>\n<li> If you have done this correctly, the H5P object you selected should be embedded on the corresponding sub-page on your WordPress course site.\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>\n<\/p>\n<p>\n\t\t<\/div>\n\t<\/div>\n<\/div>\n<p>\n<\/p>\n<div class=\"panel iDevice\">\n\t<div class=\"panel-heading idevice-heading\">\n\t\t<div>\n\t\t\t<img decoding=\"async\" class=\"pedagogicalicon\" alt=\"discussion\" src=\"https:\/\/pacificopencourses.col.org\/edt4ol\/wp-content\/themes\/oeru-course\/idevices\/Icon_discussion.png\">\n\t\t<\/div>\n\t\t<div>\n\t\t\t<h2>Need help?<\/h2>\n\t\t<\/div>\n\t<\/div>\n\t<div class=\"panel-body\">\n\t\t<div class=\"col-md-12\">\n\t\t\t<\/p>\n<p>If you need help to support your authoring in the wiki and\/or publishing to your WordPress course site, please post your questions in the <a rel=\"nofollow\" class=\"external text\" href=\"https:\/\/forums.oeru.org\/t\/edt4ol-pac-authoring-and-publishing-support-forum\/3722\">Support forum<\/a>.\n<\/p>\n<ul>\n<li> Please summarize the problem you are trying to resolve.\n<\/li>\n<li> Please include the following URLs when requesting help:\n<ul>\n<li>The relevant wiki sub-page\n<\/li>\n<li>Your wiki \u2018Outline page\u2019\n<\/li>\n<li>Your WordPress course site\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>By providing the URLs, your facilitator will be able to identify markup errors and where appropriate, fix any syntax errors directly in the wiki.\n<\/p>\n<p>\n<\/p>\n<p>\n\t\t<\/div>\n\t<\/div>\n<\/div>\n<p>\n<\/p>\n<ol class=\"references\">\n<li id=\"cite_note-1\"><span class=\"mw-cite-backlink\"><a href=\"#cite_ref-1\">\u2191<\/a><\/span> <span class=\"reference-text\">This is because H5P objects use &#8216;iframe&#8217; capability, which is the HTML capability that makes another web-page (such as an H5P object) appear within the current page you are viewing. In an open editing environment such as WikiEducator, there is a risk that iframes could be used to embed malicious code, so iframes are not enabled within WikiEducator. However, because there is greater security with controlled access to your individual course site on WordPress, we have enabled iframes on the course site.<\/span>\n<\/li>\n<\/ol>\n<p><!-- \nNewPP limit report\nCPU time usage: 0.087 seconds\nReal time usage: 0.101 seconds\nPreprocessor visited node count: 526\/1000000\nPreprocessor generated node count: 1726\/1000000\nPost\u2010expand include size: 13104\/2097152 bytes\nTemplate argument size: 8603\/2097152 bytes\nHighest expansion depth: 7\/40\nExpensive parser function count: 0\/100\n--><\/p>\n<p><!-- Saved in parser cache with key we_en-mw_:pcache:idhash:189914-0!*!0!!*!2!* and timestamp 20220719051324 and revision id 1097203\n -->\n<\/div>\n<div class=\"visualClear\"><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"row\">\n<div class=\"col-md-12\">\n<ul class=\"pager\">\n<li class=\"previous\">\n            <a href=\"\/edt4ol\/learning-challenges\/authoring-a-learning-sequence\/embed-video\">\u2190 Previous<\/a>\n          <\/li>\n<li class=\"next\">\n            <a href=\"\/edt4ol\/learning-challenges\/authoring-a-learning-sequence\/tips-for-authoring-sub-pages\">Next \u2192<\/a>\n          <\/li>\n<\/ul><\/div>\n<\/p><\/div>\n<div id=\"wenote-ids\"><script type='text\/javascript' id='wenotes-ids'>\n    var WEnotesSite = \"https:\/\/wikieducator.org\";\n    var WEnotesPath = \"\/EDT4OL\/Authoring\/Embed_H5P\";\n    var WEnotesSiteID = \"0e3d258fbd36841f92259eefcd41d5e9\";\n    var WEnotesPathID = \"34ea1e956597dfeac199adf53bec9333\";\n    var WEnotesIDs = { site: \"https:\/\/wikieducator.org\", path: \"\/EDT4OL\/Authoring\/Embed_H5P\", site_id: \"0e3d258fbd36841f92259eefcd41d5e9\", path_id: \"34ea1e956597dfeac199adf53bec9333\" };\n<\/script><\/div>\n<\/div>\n<footer><\/footer>\n","protected":false},"excerpt":{"rendered":"<p>Previously in this course, you learned how to author interactive H5P objects in your personal blog site and embed them in a blog post. In this section, you will learn how to use wiki markup to embed the H5P objects you authored in your course site instead. H5P wiki template markup The wiki text below [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":17847,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-17859","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/pacificopencourses.col.org\/edt4ol\/wp-json\/wp\/v2\/pages\/17859","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pacificopencourses.col.org\/edt4ol\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/pacificopencourses.col.org\/edt4ol\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/pacificopencourses.col.org\/edt4ol\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/pacificopencourses.col.org\/edt4ol\/wp-json\/wp\/v2\/comments?post=17859"}],"version-history":[{"count":1,"href":"https:\/\/pacificopencourses.col.org\/edt4ol\/wp-json\/wp\/v2\/pages\/17859\/revisions"}],"predecessor-version":[{"id":17860,"href":"https:\/\/pacificopencourses.col.org\/edt4ol\/wp-json\/wp\/v2\/pages\/17859\/revisions\/17860"}],"up":[{"embeddable":true,"href":"https:\/\/pacificopencourses.col.org\/edt4ol\/wp-json\/wp\/v2\/pages\/17847"}],"wp:attachment":[{"href":"https:\/\/pacificopencourses.col.org\/edt4ol\/wp-json\/wp\/v2\/media?parent=17859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}