<?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>Any way to make related-assets widget dynamic?</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120489553" />
  <subtitle>Any way to make related-assets widget dynamic?</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120489553</id>
  <updated>2026-04-03T23:00:40Z</updated>
  <dc:date>2026-04-03T23:00:40Z</dc:date>
  <entry>
    <title>RE: Any way to make related-assets widget dynamic?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120491429" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120491429</id>
    <updated>2020-12-07T07:49:26Z</updated>
    <published>2020-12-07T07:49:26Z</published>
    <summary type="html">&lt;p&gt;Regarding your followup: To create your own Widget, follow any
  portlet documentation. In depth, you can &lt;a
    href="https://help.liferay.com/hc/en-us/articles/360032887552-Introduction-to-Developing-a-Web-Application"&gt;find
    one here&lt;/a&gt;.&lt;br /&gt;As you mention DXP: Liferay University access is
  included in a DXP subscription, you can also go through the trainings
  at &lt;a href="https://passport.liferay.com"&gt;https://passport.liferay.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The &amp;quot;same div container&amp;quot; requirement sounds weird to me.
  Well - technically they are (&amp;lt;div id=&amp;quot;wrapper&amp;quot;&amp;gt;) but
  in general, you probably &amp;quot;only&amp;quot; need the information about
  the other article to be shown on the page. As you mention the
  &amp;quot;Related Assets&amp;quot; portlet, you're obviously aware of it. I'd
  recommend to inspect it to see how it determines the main asset that
  it should relate to.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2020-12-07T07:49:26Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: Any way to make related-assets widget dynamic?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120491014" />
    <author>
      <name>Nofal B</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120491014</id>
    <updated>2020-12-07T06:48:09Z</updated>
    <published>2020-12-06T11:38:29Z</published>
    <summary type="html">&lt;p&gt;Thankyou for the reply! Can you please guide me to the correct way of
  making my own widget and/or extending it if possible?&lt;/p&gt;
&lt;p&gt;I can explain my second question more clearly. Is there a way to
  control the templates so I have control of the related asset widget
  and display page template widget at the same time because in my case
  they both need to be in one HTML div container I dont see a possible
  way to do it currently. So far I havent seen anything that could help
  me in the documentation so I would really appreciate it if you could
  guide me to the correct way of doing both.&lt;/p&gt;
&lt;p&gt;Many thanks!&lt;/p&gt;</summary>
    <dc:creator>Nofal B</dc:creator>
    <dc:date>2020-12-06T11:38:29Z</dc:date>
  </entry>
  <entry>
    <title>RE: Any way to make related-assets widget dynamic?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120488443" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120488443</id>
    <updated>2020-12-05T12:56:22Z</updated>
    <published>2020-12-05T12:56:22Z</published>
    <summary type="html">&lt;p&gt;If I understand the first part of your question correctly, I'd rather
  recommend to create your own &amp;quot;related assets&amp;quot; widget instead
  of changing the stock one: That one is simple and just shows the
  configured related assets to the main asset on page. Period.&lt;/p&gt;
&lt;p&gt;If you have other criteria to determine the relatedness, just build
  your own widget that implements them. This way you won't have to
  maintain a delta with a widget that does different things, but have
  your own relatively stable implementation.&lt;/p&gt;
&lt;p&gt;I don't fully understand the second part of your question&lt;/p&gt;</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2020-12-05T12:56:22Z</dc:date>
  </entry>
  <entry>
    <title>Any way to make related-assets widget dynamic?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120489552" />
    <author>
      <name>Nofal B</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120489552</id>
    <updated>2020-12-04T17:31:01Z</updated>
    <published>2020-12-04T14:40:12Z</published>
    <summary type="html">&lt;p&gt;I have a product with certain things in its fields on the basis of
  which the other products should be shown in the widget without having
  to relate them in the product properties i.e without having to do
  &amp;quot;Select Related Assets&amp;quot; for each product. Is there a way to
  achieve this?&lt;/p&gt;
&lt;p&gt;This is a follow up question.I have a dislpay page template
  configured for every product and that is rendered within an HTML
  container and I want the related assets to be shown within the same
  container but since both are seperate widgets, I can't make them both
  show up in the same HTML container since both have different
  templates. Is there a way of acheiving this?&lt;/p&gt;
&lt;p&gt;I am using DXP 7.3.&lt;/p&gt;
&lt;p&gt;Many Thanks!&lt;/p&gt;</summary>
    <dc:creator>Nofal B</dc:creator>
    <dc:date>2020-12-04T14:40:12Z</dc:date>
  </entry>
</feed>
