<?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>Asset Publisher View url</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118168356" />
  <subtitle>Asset Publisher View url</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=118168356</id>
  <updated>2026-04-04T16:21:03Z</updated>
  <dc:date>2026-04-04T16:21:03Z</dc:date>
  <entry>
    <title>RE: Asset Publisher View url</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118212104" />
    <author>
      <name>Arun Pandian</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118212104</id>
    <updated>2020-01-06T15:26:23Z</updated>
    <published>2020-01-06T15:26:23Z</published>
    <summary type="html">Instead of giving static url can it be done dynamically ? like web contents set a display page such scenerio can be done in liferay 7.2 GA 1 &lt;br /&gt;&lt;br /&gt;and how to get a static url of a portlet to set in the getviewurlincontext can anyone give me an example please.</summary>
    <dc:creator>Arun Pandian</dc:creator>
    <dc:date>2020-01-06T15:26:23Z</dc:date>
  </entry>
  <entry>
    <title>RE: Asset Publisher View url</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118211757" />
    <author>
      <name>Arun Pandian</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118211757</id>
    <updated>2020-01-06T15:07:33Z</updated>
    <published>2020-01-06T15:07:33Z</published>
    <summary type="html">Thanks for the suggestion after some workaround i found that there are 2 method of the same name &lt;br /&gt;&lt;br /&gt;have to use, &lt;br /&gt;public String getURLViewInContext(LiferayPortletRequest liferayPortletRequest,&lt;br /&gt;            LiferayPortletResponse liferayPortletResponse, String noSuchEntryRedirect) throws Exception {&lt;br /&gt;&lt;br /&gt;instead of &lt;br /&gt;&lt;br /&gt;    protected String getURLViewInContext(LiferayPortletRequest liferayPortletRequest, String noSuchEntryRedirect,&lt;br /&gt;            String path, String primaryKeyParameterName, long primaryKeyParameterValue) {</summary>
    <dc:creator>Arun Pandian</dc:creator>
    <dc:date>2020-01-06T15:07:33Z</dc:date>
  </entry>
  <entry>
    <title>RE: Asset Publisher View url</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118209761" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118209761</id>
    <updated>2020-01-06T14:29:40Z</updated>
    <published>2020-01-06T14:29:40Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Arun Pandian:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;br /&gt;Yea i have tried that too &lt;br /&gt;&lt;br /&gt;   ...     System.out.println(&amp;#34;Hello world&amp;#34;); ...&lt;br /&gt;&lt;/blockquote&gt;I&amp;#39;ve seen System.out output being swallowed when running from within eclipse. Try logging instead or set a breakpoint to make extra &lt;em&gt;extra&lt;/em&gt; sure that this method is indeed not called - that one fooled me once and took quite some time to resolve, until I figured out that it just doesn&amp;#39;t end up in eclipse&amp;#39;s console.</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2020-01-06T14:29:40Z</dc:date>
  </entry>
  <entry>
    <title>RE: Asset Publisher View url</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118211418" />
    <author>
      <name>Arun Pandian</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118211418</id>
    <updated>2020-01-06T14:15:17Z</updated>
    <published>2020-01-06T14:15:17Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;div class="quote-title"&gt;Mohammed Yasin:&lt;/div&gt;&lt;blockquote&gt;&lt;br&gt;You can&amp;nbsp; try&amp;nbsp; setting&amp;nbsp; path where to display in AssetRenderer of your custom asset&amp;nbsp;&lt;pre&gt;&lt;code&gt;public String getURLViewInContext(LiferayPortletRequest liferayPortletRequest,LiferayPortletResponse liferayPortletResponse,String noSuchEntryRedirect) {&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;return url where u want to show;
}&lt;/code&gt;&lt;/pre&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/blockquote&gt;&lt;br&gt;&lt;br&gt;Yea i have tried that too &lt;br&gt;&lt;br&gt;my method : &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Override&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;protected String getURLViewInContext(LiferayPortletRequest liferayPortletRequest, String noSuchEntryRedirect,&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;String path, String primaryKeyParameterName, long primaryKeyParameterValue) {&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;// TODO Auto-generated method stub&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;System.out.println("Hello world");&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;return super.getURLViewInContext(liferayPortletRequest, noSuchEntryRedirect, path, primaryKeyParameterName,&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;primaryKeyParameterValue);&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br&gt;but its no luck when the asset behaviour is set to view in context the above method didnt get called i dont know why. &lt;br&gt;&lt;br&gt;i tried the same in getURLView also&amp;nbsp; but it was no luck.&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Arun Pandian</dc:creator>
    <dc:date>2020-01-06T14:15:17Z</dc:date>
  </entry>
  <entry>
    <title>RE: Asset Publisher View url</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118209375" />
    <author>
      <name>Mohammed Yasin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118209375</id>
    <updated>2020-01-06T12:42:33Z</updated>
    <published>2020-01-06T12:42:33Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;You can&amp;nbsp; try&amp;nbsp; setting&amp;nbsp; path where to display in AssetRenderer of your custom asset&amp;nbsp;&lt;pre&gt;&lt;code&gt;public String getURLViewInContext(LiferayPortletRequest liferayPortletRequest,LiferayPortletResponse liferayPortletResponse,String noSuchEntryRedirect) {&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;return url where u want to show;
}&lt;/code&gt;&lt;/pre&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Mohammed Yasin</dc:creator>
    <dc:date>2020-01-06T12:42:33Z</dc:date>
  </entry>
  <entry>
    <title>RE: Asset Publisher View url</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118208672" />
    <author>
      <name>Arun Pandian</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118208672</id>
    <updated>2020-01-06T10:33:55Z</updated>
    <published>2020-01-06T10:33:55Z</published>
    <summary type="html">No even though the view in context is set it is not working.because the asset is created in the admin panel and given access to the guest user to view it so unfortunely view in context and view fullcontent both resulting in displaying fullcontent.  is there any other way available like web content to mark the display page for the specific asset ? for custom asset or for category.</summary>
    <dc:creator>Arun Pandian</dc:creator>
    <dc:date>2020-01-06T10:33:55Z</dc:date>
  </entry>
  <entry>
    <title>RE: Asset Publisher View url</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118208329" />
    <author>
      <name>Dominik Marks</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118208329</id>
    <updated>2020-01-06T09:41:57Z</updated>
    <published>2020-01-06T09:41:57Z</published>
    <summary type="html">To display assets in a separate page use the setting &amp;#34;show in context&amp;#34; for the &amp;#34;asset link behavior&amp;#34; configuration of the asset publisher.More information about the configuration options can be found in the documentation: &lt;a href="https://portal.liferay.dev/docs/7-0/user/-/knowledge_base/u/publishing-assets"&gt;&lt;/a&gt;&lt;a href="https://portal.liferay.dev/docs/7-2/user/-/knowledge_base/u/configuring-display-settings"&gt;https://portal.liferay.dev/docs/7-2/user/-/knowledge_base/u/configuring-display-settings&lt;/a&gt;&lt;a href="https://portal.liferay.dev/docs/7-0/user/-/knowledge_base/u/publishing-assets"&gt;&lt;/a&gt;</summary>
    <dc:creator>Dominik Marks</dc:creator>
    <dc:date>2020-01-06T09:41:57Z</dc:date>
  </entry>
  <entry>
    <title>RE: Asset Publisher View url</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118207443" />
    <author>
      <name>Arun Pandian</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118207443</id>
    <updated>2020-01-05T15:11:18Z</updated>
    <published>2020-01-05T15:11:18Z</published>
    <summary type="html">Hi,Can Anyone Help me on this please...</summary>
    <dc:creator>Arun Pandian</dc:creator>
    <dc:date>2020-01-05T15:11:18Z</dc:date>
  </entry>
  <entry>
    <title>Asset Publisher View url</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118168355" />
    <author>
      <name>Arun Pandian</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118168355</id>
    <updated>2019-12-30T07:10:10Z</updated>
    <published>2019-12-30T07:10:10Z</published>
    <summary type="html">Hi, i am using liferay 7.2 GA 1 &lt;br /&gt;&lt;br /&gt;i have a custom asset called post entry i have mapped view url in the template. &lt;br /&gt;&lt;br /&gt;when a user click the title of the asset it  is displaying the summary from asset renderer in the same page on the same block. &lt;br /&gt;&lt;br /&gt;what i want is when a user click on the title it should redirect in to a new page and display the summary in the allocated block. is it possible ?</summary>
    <dc:creator>Arun Pandian</dc:creator>
    <dc:date>2019-12-30T07:10:10Z</dc:date>
  </entry>
</feed>
