{"id":20148,"date":"2013-09-23T12:48:00","date_gmt":"2013-09-23T18:18:00","guid":{"rendered":"https:\/\/www.solutionanalysts.com\/blog\/embedding-a-portlet-in-to-a-web-content-portlet\/"},"modified":"2024-09-12T04:41:19","modified_gmt":"2024-09-12T10:11:19","slug":"embedding-portlet-web-content-portlet","status":"publish","type":"post","link":"https:\/\/www.solutionanalysts.com\/blog\/embedding-portlet-web-content-portlet\/","title":{"rendered":"Embedding a Portlet in to a Web Content Portlet"},"content":{"rendered":"<p>Create a portlet with any name, EX. &#8220;portlet-embedded&#8221;.<br \/>\nWrite your code in portlet (view.jsp) to be displayed.<br \/>\nThis is a list item number 3<br \/>\nThis is a list item number 4<br \/>\nCreate a portlet with<br \/>\nWrite your code in portlet (view.jsp) to be displayed.<br \/>\nAfter adding your code to the portlet deploy the portlet so it is available for to use in web content.<br \/>\nAdding web content on pag<br \/>\nGo to dock bar and select Addbutton and click Web Content Display so it&#8217;s add Web Content Display portlet on to your page.<br \/>\nAfter adding web content to page now add the content to web content display by clicking Add Web Content button of Web Content Display portlet.<br \/>\nCode snippet<\/p>\n<div id=\"div-id\">\n<div id=\"data-id\">Lorem Ipsum is simply dummy text of the printing<br \/>\nand typesetting industry. Lorem Ipsum has been the<br \/>\nindustry&#8217;s standard dummy text ever since the 1500s,<br \/>\nwhen an unknown printer took a galley of type and<br \/>\nscrambled it to make a type specimen book.<\/div>\n<div id=\"embedded-div-id\"><\/div>\n<\/div>\n<p>The Red colored line is for to embed a portlet in to web content<br \/>\nname=&#8221;portletembedded_WAR_portletembeddedportlet&#8221; the name of your portlet to be embedded with.<br \/>\ninstance=&#8221;&#8221; give instance name other wise blank.<br \/>\nqueryString=&#8221;&#8221; give queryString if any other wise blank.<br \/>\nAfter adding this save the web content with proper name.<br \/>\nSo it display the web content with your data plus the portlet with their data as shown below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Create a portlet with any name, EX. &#8220;portlet-embedded&#8221;. Write your code in portlet (view.jsp) to be displayed. This is a list item number 3 This is a list item number 4 Create a portlet with Write your code in portlet (view.jsp) to be displayed. After adding your code to the portlet deploy the portlet so [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":20149,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-20148","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hire-developer"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.solutionanalysts.com\/blog\/wp-json\/wp\/v2\/posts\/20148","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.solutionanalysts.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.solutionanalysts.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.solutionanalysts.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.solutionanalysts.com\/blog\/wp-json\/wp\/v2\/comments?post=20148"}],"version-history":[{"count":1,"href":"https:\/\/www.solutionanalysts.com\/blog\/wp-json\/wp\/v2\/posts\/20148\/revisions"}],"predecessor-version":[{"id":31645,"href":"https:\/\/www.solutionanalysts.com\/blog\/wp-json\/wp\/v2\/posts\/20148\/revisions\/31645"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.solutionanalysts.com\/blog\/wp-json\/wp\/v2\/media\/20149"}],"wp:attachment":[{"href":"https:\/\/www.solutionanalysts.com\/blog\/wp-json\/wp\/v2\/media?parent=20148"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.solutionanalysts.com\/blog\/wp-json\/wp\/v2\/categories?post=20148"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.solutionanalysts.com\/blog\/wp-json\/wp\/v2\/tags?post=20148"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}