Asset View in Context in Different PageAsset View in Context in Different Pagehttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1177818952024-03-29T12:37:34Z2024-03-29T12:37:34ZRE: Asset View in Context in Different PageArun Pandianhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1178069172019-11-17T14:29:33Z2019-11-17T14:29:33Z<div class="quote-title">FABIO PORTIERI:</div><blockquote><br />HIi've done this recently, wasn't easy to find out how <br />i think the easiest way is to create a page and set it as display page template for the webcontent that way when you click it from your asset publisher it will redirect to your custom pagebut the display page template must be constructed in a certain wayfor me it worked like that:1. create a widget page2. add an asset publisher in that page3. flag the options "set as default asset publisher for that page" and the option "render only content with this display page template" or something like that, they are near each otheronce you done that, the page you created can be added as display page template for your web content, otherwise it will be grayed out and you can't set it<br />hope it helps</blockquote>We can do that for web content but in my case i have a custom entity where i want to redirect the user to a specfic block and render the dataArun Pandian2019-11-17T14:29:33ZRE: Asset View in Context in Different PageFABIO PORTIERIhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1177857802019-11-15T09:12:25Z2019-11-15T09:12:25ZHIi've done this recently, wasn't easy to find out how <br />i think the easiest way is to create a page and set it as display page template for the webcontent that way when you click it from your asset publisher it will redirect to your custom pagebut the display page template must be constructed in a certain wayfor me it worked like that:1. create a widget page2. add an asset publisher in that page3. flag the options "set as default asset publisher for that page" and the option "render only content with this display page template" or something like that, they are near each otheronce you done that, the page you created can be added as display page template for your web content, otherwise it will be grayed out and you can't set it<br />hope it helpsFABIO PORTIERI2019-11-15T09:12:25ZRE: Asset View in Context in Different PageMohammed Yasinhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1177826472019-11-15T06:25:14Z2019-11-15T06:25:14ZHi,<br />You can change the view in context /full context behavior for asset publisher by overriding the AssetRenderer of respected assets, For forum also it is defined in AssetRenderer on how to behave in AssetPublisher , You can refer there below AssetRenderer of Forum.<br /><a href="https://github.com/liferay/liferay-portal/blob/7.2.x/modules/apps/message-boards/message-boards-web/src/main/java/com/liferay/message/boards/web/internal/asset/model/MBMessageAssetRenderer.java">https://github.com/liferay/liferay-portal/blob/7.2.x/modules/apps/message-boards/message-boards-web/src/main/java/com/liferay/message/boards/web/internal/asset/model/MBMessageAssetRenderer.java</a>.<br /><br />Alternate way also is to use Asset Display template where you can define your own Display and urls<br /><a href="https://portal.liferay.dev/docs/7-0/tutorials/-/knowledge_base/t/implementing-application-display-templates">https://portal.liferay.dev/docs/7-0/tutorials/-/knowledge_base/t/implementing-application-display-templates</a>Mohammed Yasin2019-11-15T06:25:14ZAsset View in Context in Different PageArun Pandianhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1177818942019-11-15T05:01:35Z2019-11-15T05:01:35ZHi, I am using custom entity in asset publisher and i have 2 sites one is guest site and another is a workspace people from workspace insert the custom entity to the asset in the database and people at the guest site will able to view the asset from the database. <br /><br />my problem is the asset details are displaying in the same block where the entity is shown.i want to show that asset in a seperate page just like forum recent content <br /><br />in fo