<?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 filtr by categories</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119860507" />
  <subtitle>Liferay filtr by categories</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=119860507</id>
  <updated>2026-04-04T03:32:21Z</updated>
  <dc:date>2026-04-04T03:32:21Z</dc:date>
  <entry>
    <title>RE: Liferay filtr by categories</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119871603" />
    <author>
      <name>Alberto Imaginanet</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119871603</id>
    <updated>2020-08-31T10:34:28Z</updated>
    <published>2020-08-31T10:34:28Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Yes, I'm using&amp;nbsp;&lt;pre&gt;&lt;code&gt;AssetEntryAssetCategoryRelLocalServiceUtil.[i]deleteAssetEntryAssetCategoryRelByAssetCategoryId[/i](categoryID);&lt;/code&gt;&lt;/pre&gt;for delete category from article.&amp;nbsp;&lt;br&gt;but when I choose all articles without this category (in configuration of asset publisher - not include these category) . &lt;br&gt;I do not get any of these articles. All of them filtre with this category. But they&amp;nbsp;don't really have this category if you look inside the article&lt;br&gt;&lt;br&gt;But if I'm updating article - this article appears in a list without categories&lt;br&gt;So I need to update and save each one articles without category. But I don't know how to do it from listener.&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Alberto Imaginanet</dc:creator>
    <dc:date>2020-08-31T10:34:28Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay filtr by categories</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119863016" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119863016</id>
    <updated>2020-08-28T13:21:13Z</updated>
    <published>2020-08-28T13:21:13Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Alberto Imaginanet:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;Hi Olaf!&lt;br /&gt;Thanks for your reply.I need to remove a category from an article. How can I do this from my service? not from web content. What table contains information about which categories an article belongs to?&lt;/blockquote&gt;&lt;br /&gt;&amp;#34;What table contains...?&amp;#34;: Wrong question! See the article that I linked in my previous answer! Print the ER-diagram poster, hang it in your workspace and make sure to fill out the missing parts.&lt;br /&gt;You&amp;#39;ll have to look through the API containing &amp;#34;Asset&amp;#34; and &amp;#34;Category&amp;#34;. &lt;a href="https://docs.liferay.com/ce/apps/asset/1.0.0/javadocs/com/liferay/asset/entry/rel/service/AssetEntryAssetCategoryRelLocalService.html"&gt;AssetEntryAssetCategoryRelLocalService&lt;/a&gt; looks &lt;a href="https://docs.liferay.com/ce/apps/asset/1.0.0/javadocs/com/liferay/asset/entry/rel/service/AssetEntryAssetCategoryRelLocalService.html"&gt;&lt;/a&gt;like a candidate in case you don&amp;#39;t need permission checks. There might be other candidates - there&amp;#39;s quite a lot of Asset*Services around that I&amp;#39;m not sure to hit the right one on first try. Also, you might want to use the (non-Local) Service to utilize permission checks during the operation.</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2020-08-28T13:21:13Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay filtr by categories</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119863624" />
    <author>
      <name>Alberto Imaginanet</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119863624</id>
    <updated>2020-08-28T12:55:50Z</updated>
    <published>2020-08-28T12:55:50Z</published>
    <summary type="html">Hi Olaf!&lt;br /&gt;Thanks for your reply.I need to remove a category from an article. How can I do this from my service? not from web content. What table contains information about which categories an article belongs to?</summary>
    <dc:creator>Alberto Imaginanet</dc:creator>
    <dc:date>2020-08-28T12:55:50Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay filtr by categories</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119862649" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119862649</id>
    <updated>2020-08-28T12:37:29Z</updated>
    <published>2020-08-28T12:37:29Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Alberto Imaginanet:&lt;/div&gt;&lt;blockquote&gt;&lt;br /&gt;I am creating two portlets. One of them shows articles with categories. Second portlet shows articles without categories. &lt;br /&gt;The problem is with the second portlet. If one of the articles was in the first portlet and then delete the category, the second portlet does not show these articles.I delete category from article just delete information in the table AssetEntryAssetCategoryRel. &lt;br /&gt;Maybe I need change something else fo that?&lt;br /&gt;&lt;/blockquote&gt;I don&amp;#39;t fully understand your question, but if you &amp;#34;delete information in [a] table&amp;#34;, then yes, you need to change something. Most likely you&amp;#39;ve broken your installation and should restart &lt;a href="https://liferay.dev/blogs/-/blogs/understanding-liferay-s-database"&gt;with this vital information (see link)&lt;/a&gt; in mind.&lt;br /&gt;&lt;br /&gt;Also: You&amp;#39;re not supposed to change any underlying data in the render phase. The order of evaluation of rendering the portlets is undefined, and nothing in the container&amp;#39;s implementation expects changes to underlying business state from your portlet being rendered.</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2020-08-28T12:37:29Z</dc:date>
  </entry>
  <entry>
    <title>Liferay filtr by categories</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119860506" />
    <author>
      <name>Alberto Imaginanet</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=119860506</id>
    <updated>2020-08-28T11:14:26Z</updated>
    <published>2020-08-28T11:14:26Z</published>
    <summary type="html">Hello everyone!!!&lt;br /&gt;I am creating two portlets. One of them shows articles with categories. Second portlet shows articles without categories. &lt;br /&gt;The problem is with the second portlet. If one of the articles was in the first portlet and then delete the category, the second portlet does not show these articles.I deleted category from article just delete information in the table AssetEntryAssetCategoryRel. &lt;br /&gt;Maybe I need change something else fo that?</summary>
    <dc:creator>Alberto Imaginanet</dc:creator>
    <dc:date>2020-08-28T11:14:26Z</dc:date>
  </entry>
</feed>
