<?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>Get list of web content templates</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120113183" />
  <subtitle>Get list of web content templates</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120113183</id>
  <updated>2026-04-04T17:39:10Z</updated>
  <dc:date>2026-04-04T17:39:10Z</dc:date>
  <entry>
    <title>RE: Get list of web content templates</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121384001" />
    <author>
      <name>Lee Jordan</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121384001</id>
    <updated>2022-03-22T19:35:53Z</updated>
    <published>2022-03-22T19:35:53Z</published>
    <summary type="html">&lt;p&gt;Would be easier with jQuery if each widget title said the
  template/structure name instead of &amp;lt;span
  class=&amp;quot;portlet-name-text&amp;quot;&amp;gt;Web Content
  Display&amp;lt;/span&amp;gt;. You could then for each &amp;lt;section&amp;gt; in
  jQuery and abstract the name of the templates on the page. All you'd
  get now is repeated &amp;quot;Web Content Display&amp;quot; as names. Also you
  could group them, say there were 3 Card Smalls on the page like
  &amp;quot;Card Small (3)&amp;quot; and of course this could be put into a
  sidebar or information panel.&lt;/p&gt;
&lt;p&gt;It seemed to be done for content pages you can get a tree structure
  of what's on the page, but hasn't been done for widget pages which is
  a missed opportunity.&lt;/p&gt;</summary>
    <dc:creator>Lee Jordan</dc:creator>
    <dc:date>2022-03-22T19:35:53Z</dc:date>
  </entry>
  <entry>
    <title>RE: Get list of web content templates</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120121452" />
    <author>
      <name>Nikita Laitinen</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120121452</id>
    <updated>2020-10-21T06:39:48Z</updated>
    <published>2020-10-21T06:39:48Z</published>
    <summary type="html">Yes, you&amp;#39;re right, I mean programmatically.&lt;br /&gt;I will check that portlet.&lt;br /&gt;​​​​​​​Thanks for the info!</summary>
    <dc:creator>Nikita Laitinen</dc:creator>
    <dc:date>2020-10-21T06:39:48Z</dc:date>
  </entry>
  <entry>
    <title>RE: Get list of web content templates</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120114311" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120114311</id>
    <updated>2020-10-20T06:51:09Z</updated>
    <published>2020-10-20T06:51:09Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Nikita Laitinen:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;​​​​​​​How to get the names of all web content templates that are used on the web page?&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;I guess you mean programmatically?&lt;br /&gt;You&amp;#39;ll have to know what you&amp;#39;re looking for: E.g. you can analyze the page and check which Web Content Display portlet is on there, retrieve its configuration, check for the article&amp;#39;s configured template. You&amp;#39;d need to do that with any other way an article can appear on a page, e.g. through analyzing what AssetPublisher shows (which might be different for any visitor when filtering with user properties). Also, the method will likely differ between Widget- and Content-Pages.&lt;br /&gt;You can start with this ugly but informative portlet: &lt;a href="https://github.com/olafk/layout-info-web"&gt;https://github.com/olafk/layout-info-web&lt;/a&gt;</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2020-10-20T06:51:09Z</dc:date>
  </entry>
  <entry>
    <title>Get list of web content templates</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120113182" />
    <author>
      <name>Nikita Laitinen</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120113182</id>
    <updated>2020-10-19T16:33:16Z</updated>
    <published>2020-10-19T16:33:16Z</published>
    <summary type="html">Hello!&lt;br /&gt;&lt;br /&gt;​​​​​​​How to get the names of all web content templates that are used on the web page?</summary>
    <dc:creator>Nikita Laitinen</dc:creator>
    <dc:date>2020-10-19T16:33:16Z</dc:date>
  </entry>
</feed>
