<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Adding Portlet Programmatically in Content page</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120841736" />
  <subtitle>Adding Portlet Programmatically in Content page</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120841736</id>
  <updated>2026-04-06T19:39:55Z</updated>
  <dc:date>2026-04-06T19:39:55Z</dc:date>
  <entry>
    <title>RE: RE: Adding Portlet Programmatically in Content page</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121221658" />
    <author>
      <name>Prathibha hallur</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121221658</id>
    <updated>2021-10-28T13:58:34Z</updated>
    <published>2021-10-28T13:58:33Z</published>
    <summary type="html">&lt;p&gt;@Mohammed Yasin,&lt;/p&gt;
&lt;p&gt;Have you implemented site initializer , please can you provide more
  info. How do you initiate SI and did you also use SI for updates of
  site or only new site ?&lt;/p&gt;</summary>
    <dc:creator>Prathibha hallur</dc:creator>
    <dc:date>2021-10-28T13:58:33Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: Adding Portlet Programmatically in Content page</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121218734" />
    <author>
      <name>Prathibha hallur</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121218734</id>
    <updated>2021-10-26T14:36:19Z</updated>
    <published>2021-10-26T13:32:14Z</published>
    <summary type="html">&lt;p&gt;Hi Aravinth,&lt;/p&gt;
&lt;p&gt;This is off topic,  I have a question - What type of  module (project
  template name) did you create for SI? &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Prathibha&lt;/p&gt;</summary>
    <dc:creator>Prathibha hallur</dc:creator>
    <dc:date>2021-10-26T13:32:14Z</dc:date>
  </entry>
  <entry>
    <title>RE: Adding Portlet Programmatically in Content page</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120844348" />
    <author>
      <name>Aravinth Kumar</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120844348</id>
    <updated>2021-06-24T10:16:40Z</updated>
    <published>2021-06-24T10:16:40Z</published>
    <summary type="html">&lt;p&gt;Thanks for your response. Yes I used the above link and created the
  page, etc. Only I m not able to place a portlet onto a content page. &lt;/p&gt;
&lt;p&gt;I'm checking on liferay source code to understand the fragments and
  layoutstructures used in content page.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Aravinth Kumar</dc:creator>
    <dc:date>2021-06-24T10:16:40Z</dc:date>
  </entry>
  <entry>
    <title>RE: Adding Portlet Programmatically in Content page</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120844203" />
    <author>
      <name>Mohammed Yasin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120844203</id>
    <updated>2021-06-24T06:38:27Z</updated>
    <published>2021-06-24T06:38:27Z</published>
    <summary type="html">&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can refer Site Initializers Blog,  may be it will help you&lt;/p&gt;
&lt;p&gt;
  &lt;a href="https://liferay.dev/en/b/site-initializers-101"&gt;https://liferay.dev/en/b/site-initializers-101&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Also you can refer sample site initializers for api&lt;/p&gt;
&lt;p&gt;
  &lt;a href="https://github.com/lfrsales/site-se-site-initializer"&gt;https://github.com/lfrsales/site-se-site-initializer&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;
  &lt;a href="https://github.com/lfrsales/site-se-site-initializer/blob/master/modules/site-se-site-initializer/src/main/java/com/liferay/site/se/site/initializer/internal/SESiteInitializer.java#L171"&gt;https://github.com/lfrsales/site-se-site-initializer/blob/master/modules/site-se-site-initializer/src/main/java/com/liferay/site/se/site/initializer/internal/SESiteInitializer.java#L171&lt;/a&gt;&lt;/p&gt;</summary>
    <dc:creator>Mohammed Yasin</dc:creator>
    <dc:date>2021-06-24T06:38:27Z</dc:date>
  </entry>
  <entry>
    <title>Adding Portlet Programmatically in Content page</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120841735" />
    <author>
      <name>Aravinth Kumar</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120841735</id>
    <updated>2021-08-17T16:19:12Z</updated>
    <published>2021-06-23T08:21:06Z</published>
    <summary type="html">&lt;p&gt;Hi Team,&lt;/p&gt;
&lt;p&gt;We are exploring on Liferay CONTENT pages like creating it
  programmatically, setting page templates, adding portlets to it,
  adding fragments. etc. We were able to create the page using page
  template, it works as expected.&lt;/p&gt;
&lt;p&gt;We tried placing a portlet in content page but it doesnt show up in
  the page. Can someone suggest on this. &lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;API used to place a portlet:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;1. Created fragment entry link&lt;/p&gt;
&lt;p&gt;2. Added layout structure item in layout structure object&lt;/p&gt;
&lt;p&gt;3. Updated layoutpagetemplatestructure. &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Aravinth&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Aravinth Kumar</dc:creator>
    <dc:date>2021-06-23T08:21:06Z</dc:date>
  </entry>
</feed>
