<?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>Liferay 7.2 - How to show my web content?</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=117424989" />
  <subtitle>Liferay 7.2 - How to show my web content?</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=117424989</id>
  <updated>2026-04-05T08:50:46Z</updated>
  <dc:date>2026-04-05T08:50:46Z</dc:date>
  <entry>
    <title>RE: Liferay 7.2 - How to show my web content?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117445728" />
    <author>
      <name>Fabio Carvalho</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117445728</id>
    <updated>2019-10-14T11:57:28Z</updated>
    <published>2019-10-14T11:57:28Z</published>
    <summary type="html">Hi Olaf,&lt;br /&gt;&lt;br /&gt;I went with the Display Pages option and seems to be what I want. I didn&amp;#39;t know what Display Pages were supposed to do before.&lt;br /&gt;&lt;br /&gt;Thanks a lot!</summary>
    <dc:creator>Fabio Carvalho</dc:creator>
    <dc:date>2019-10-14T11:57:28Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay 7.2 - How to show my web content?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117435859" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117435859</id>
    <updated>2019-10-11T16:02:10Z</updated>
    <published>2019-10-11T16:02:10Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Fabio Carvalho:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;What I mean by &amp;#34;dynamic selection&amp;#34; is that I create a list in my container, and each item should have a different URL. What I want to do is to redirect to a page with the content of the JournalArticle.&lt;br /&gt;&lt;/blockquote&gt;That&amp;#39;s precisely what AssetPublisher does: First dynamically filtering any number of articles, shows them (optionally) in an abbreviated (abstract) form, and provides a link to view everything. That link is to a page that contains the full article. &lt;br /&gt;Note: Articles also can have a Display Page, which is a page with an AssetPublisher marked as Default: This way you can determine where on the page the article is shown, and even show other content on the same page.&lt;br /&gt;I&amp;#39;d say: Look at AssetPublisher - if only for link generation. Also look at Display Pages - see if they can do the job for you.</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2019-10-11T16:02:10Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay 7.2 - How to show my web content?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117435490" />
    <author>
      <name>Fabio Carvalho</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117435490</id>
    <updated>2019-10-11T15:07:15Z</updated>
    <published>2019-10-11T15:07:15Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;To create objects of my model class I am doing like this:&lt;br&gt;&lt;pre&gt;&lt;code&gt;public DataSource(JournalArticle journalArticle) throws PortalException&amp;amp;nbsp;{
&amp;amp;nbsp; &amp;amp;nbsp; targetURL = journalArticle.getUrlTitle();
}&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;Then on my view.jsp:&lt;pre&gt;&lt;code&gt;&amp;lt;aui:container&amp;gt;
&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;lt;% for (int i = 0; i &amp;amp;lt; dataSources.size(); i++) { %&amp;amp;gt;
&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;lt;a href="&amp;lt;%= dataSources.get(i).getTargetURL() %&amp;gt;"&amp;gt; Some Journal Article Text &amp;lt;/a&amp;gt;
&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;lt;% } %&amp;amp;gt;
​​​​​​​&amp;lt;/aui:container&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;What I mean by "dynamic selection" is that I create a list in my container, and each item should have a different URL. What I want to do is to redirect to a page with the content of the JournalArticle.&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Fabio Carvalho</dc:creator>
    <dc:date>2019-10-11T15:07:15Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay 7.2 - How to show my web content?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117432776" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117432776</id>
    <updated>2019-10-11T11:41:47Z</updated>
    <published>2019-10-11T11:41:47Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Fabio Carvalho:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;This is a dynamic selection, so I was trying to create a page on the fly to show my Journal Article. The only examples that I found was by creating the URL with this ID that only works on Liferay 6. &lt;br /&gt;&lt;br /&gt;So if I understood correctly, the solution is to use the Asset Publisher for dynamic web content selection is that right? Are there any examples on how to do this?&lt;br /&gt;&lt;/blockquote&gt;It all depends on the &amp;#34;dynamic selection&amp;#34;: That&amp;#39;s not a concept where those two words seem to be enough.&lt;br /&gt;You may try to configure an AssetPublisher and look for its mechanics to show a single article, e.g. in the detail view.</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2019-10-11T11:41:47Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay 7.2 - How to show my web content?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117432421" />
    <author>
      <name>Fabio Carvalho</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117432421</id>
    <updated>2019-10-11T11:17:01Z</updated>
    <published>2019-10-11T11:17:01Z</published>
    <summary type="html">Hi Fernando and Olaf,&lt;br /&gt;&lt;br /&gt;This is a dynamic selection, so I was trying to create a page on the fly to show my Journal Article. The only examples that I found was by creating the URL with this ID that only works on Liferay 6. &lt;br /&gt;&lt;br /&gt;So if I understood correctly, the solution is to use the Asset Publisher for dynamic web content selection is that right? Are there any examples on how to do this?&lt;br /&gt;&lt;br /&gt;Thanks!</summary>
    <dc:creator>Fabio Carvalho</dc:creator>
    <dc:date>2019-10-11T11:17:01Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay 7.2 - How to show my web content?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117431709" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117431709</id>
    <updated>2019-10-11T08:22:37Z</updated>
    <published>2019-10-11T08:22:37Z</published>
    <summary type="html">On top of what Fernando says: An ID like &amp;#34;56&amp;#34; points to 6.x versions - You&amp;#39;re asking for 7.2 and the ids have changed dramatically. &amp;#34;56&amp;#34; definitely is not a correct id any more.</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2019-10-11T08:22:37Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay 7.2 - How to show my web content?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117426547" />
    <author>
      <name>Fernando Fernandez</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117426547</id>
    <updated>2019-10-10T21:34:39Z</updated>
    <published>2019-10-10T21:34:39Z</published>
    <summary type="html">What&amp;#39;s wrong with just using the Webcontent display portlet that comes with Liferay? Or, if you want dynamic selection of the content, the Asset Publisher portlet that comes with Liferay?</summary>
    <dc:creator>Fernando Fernandez</dc:creator>
    <dc:date>2019-10-10T21:34:39Z</dc:date>
  </entry>
  <entry>
    <title>Liferay 7.2 - How to show my web content?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117424988" />
    <author>
      <name>Fabio Carvalho</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117424988</id>
    <updated>2019-10-10T16:31:02Z</updated>
    <published>2019-10-10T16:31:02Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi,&lt;br&gt;&lt;br&gt;I am trying to create a hyperlink to my web content and I read that you can do it like this:&lt;br&gt;&lt;pre&gt;&lt;code&gt;themeDisplay.getURLCurrent() + "/-/journal_content/56/" + journalArticle.getGroupId() + "/" + journalArticle.getArticleId();&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;But when I clink my hyperlink I get redirected to something like this:&lt;img src="https://i.ibb.co/80q9vBB/Captura-de-ecr-de-2019-10-10-16-29-15.png"&gt;&lt;br&gt;&lt;br&gt;Could that "56" be a wrong ID? What would be the correct way to show my web content in a new page?&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Fabio Carvalho</dc:creator>
    <dc:date>2019-10-10T16:31:02Z</dc:date>
  </entry>
</feed>
