<?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>Plain Popup URL</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118034001" />
  <subtitle>Plain Popup URL</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118034001</id>
  <updated>2026-04-04T10:50:49Z</updated>
  <dc:date>2026-04-04T10:50:49Z</dc:date>
  <entry>
    <title>RE: Plain Popup URL</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119582679" />
    <author>
      <name>Gunnar Brinkmann</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119582679</id>
    <updated>2020-07-13T07:43:50Z</updated>
    <published>2020-07-13T07:43:50Z</published>
    <summary type="html">The solution was:&lt;br /&gt;&lt;br /&gt;1.) use the page url containing the target portlet for the javascript popup window call, for example&lt;br /&gt;1.a.) /web/mysite/mypage (public site)&lt;br /&gt;1.b.) /group/mysite/mypage (access restricted site)&lt;br /&gt;2.) use the parameters&lt;br /&gt;2.a.) p_p_id=portletId&lt;br /&gt;2.b. ) p_p_lifecycle=0&lt;br /&gt;2.c.) p_p_state=exclusive&lt;br /&gt;2.d.) p_p_mode=view&lt;br /&gt;&lt;br /&gt;Don&amp;#39;t forget to look at the target page&amp;#39;s html code.&lt;br /&gt;&lt;br /&gt; if the portlet is instanceable. An instanceable porletId looks like portletId_INSTANCE_randomstring.&lt;br /&gt;&lt;br /&gt;The page may be hidden from navigation (if you for example like in my case want to embed a portlet in your site only for this popup usage purpose).</summary>
    <dc:creator>Gunnar Brinkmann</dc:creator>
    <dc:date>2020-07-13T07:43:50Z</dc:date>
  </entry>
  <entry>
    <title>RE: Plain Popup URL</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118043363" />
    <author>
      <name>Gunnar Brinkmann</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118043363</id>
    <updated>2019-12-10T13:00:00Z</updated>
    <published>2019-12-10T13:00:00Z</published>
    <summary type="html">Mohammed, do you understand my question?&lt;br /&gt;We &lt;strong&gt;don&amp;#39;t&lt;/strong&gt; want to open the popup via tags or portlet.&lt;br /&gt;Imagine a plain URL typed in the browsers address bar for example.&lt;br /&gt;Regards,&lt;br /&gt;Gunnar</summary>
    <dc:creator>Gunnar Brinkmann</dc:creator>
    <dc:date>2019-12-10T13:00:00Z</dc:date>
  </entry>
  <entry>
    <title>RE: Plain Popup URL</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118040964" />
    <author>
      <name>Mohammed Yasin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118040964</id>
    <updated>2019-12-10T12:26:17Z</updated>
    <published>2019-12-10T12:26:17Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;If you want just create url for Layout then you can add respected plid of the page&lt;br&gt;&lt;pre&gt;&lt;code&gt;&amp;lt;liferay-portlet:renderurl plid="" windowstate="&amp;lt;%=LiferayWindowState.POP_UP.toString() %&amp;gt;" &amp;nbsp; var="plainURL"&amp;gt;&amp;lt;/liferay-portlet:renderurl&amp;gt;

&lt;/code&gt;&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Mohammed Yasin</dc:creator>
    <dc:date>2019-12-10T12:26:17Z</dc:date>
  </entry>
  <entry>
    <title>RE: Plain Popup URL</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118034329" />
    <author>
      <name>Gunnar Brinkmann</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118034329</id>
    <updated>2019-12-10T12:02:26Z</updated>
    <published>2019-12-10T12:02:26Z</published>
    <summary type="html">Thank you, but as I wrote, we want to open the popup via plain URL, not via another portlet.&lt;br /&gt;Regards,&lt;br /&gt;Gunnar</summary>
    <dc:creator>Gunnar Brinkmann</dc:creator>
    <dc:date>2019-12-10T12:02:26Z</dc:date>
  </entry>
  <entry>
    <title>RE: Plain Popup URL</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118040632" />
    <author>
      <name>Mohammed Yasin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118040632</id>
    <updated>2019-12-10T11:59:45Z</updated>
    <published>2019-12-10T11:59:45Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi ,You can use below code for forming url&lt;pre&gt;&lt;code&gt;[code]&amp;lt;portlet:renderurl var="popupUrl" windowstate="&amp;lt;%=LiferayWindowState.POP_UP.toString() %&amp;gt;"&amp;gt;
 &amp;lt;portlet:param name="mvcPath" value="/test.jsp" /&amp;gt;
&amp;lt;/portlet:renderurl&amp;gt;&lt;/code&gt;&lt;/pre&gt;refer below urls&amp;nbsp; for pop up&lt;br&gt;&lt;a href="https://www.liferaystack.com/2017/09/aui-popup-and-aui-modal-dialog-in-liferay-7.html"&gt;https://www.liferaystack.com/2017/09/aui-popup-and-aui-modal-dialog-in-liferay-7.html&lt;/a&gt;&lt;br&gt;&lt;a href="http://www.javasavvy.com/lifeay-aui-popup-sample-code/"&gt;http://www.javasavvy.com/lifeay-aui-popup-sample-code/&lt;/a&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Mohammed Yasin</dc:creator>
    <dc:date>2019-12-10T11:59:45Z</dc:date>
  </entry>
  <entry>
    <title>Plain Popup URL</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118034000" />
    <author>
      <name>Gunnar Brinkmann</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118034000</id>
    <updated>2019-12-10T11:53:27Z</updated>
    <published>2019-12-10T11:53:27Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hello,&lt;br&gt;we want to open a portlet popup via URL (not from another portlet).&lt;br&gt;Minimum parameters seem to be &lt;strong&gt;p_p_state&lt;/strong&gt; and &lt;strong&gt;p_p_id&lt;/strong&gt; like in &lt;br&gt;&lt;pre&gt;&lt;code&gt;liferayportal/liferaypage?p_p_state=pop_up&amp;amp;amp;p_p_id=PORTLET_ID
&lt;/code&gt;&lt;/pre&gt;- are plain url popup calls OK?&lt;br&gt;- are these parameters sufficient or should we add for example &lt;strong&gt;p_p_lifecycle&lt;/strong&gt;, &lt;strong&gt;p_p_mode &lt;/strong&gt;and/or others?&lt;br&gt;Regards,&lt;br&gt;Gunnar&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Gunnar Brinkmann</dc:creator>
    <dc:date>2019-12-10T11:53:27Z</dc:date>
  </entry>
</feed>
