<?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>How can an asset publisher filter by just one calendar in a scope?</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114239655" />
  <subtitle>How can an asset publisher filter by just one calendar in a scope?</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=114239655</id>
  <updated>2026-04-04T09:00:18Z</updated>
  <dc:date>2026-04-04T09:00:18Z</dc:date>
  <entry>
    <title>RE: How can an asset publisher filter by just one calendar in a scope?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114411669" />
    <author>
      <name>Andrew Jardine</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114411669</id>
    <updated>2019-07-24T13:45:23Z</updated>
    <published>2019-07-24T13:45:23Z</published>
    <summary type="html">Hey Ben,The manual option the other community member proposed is one option, but I would avoid that as it sounds like a lot of manual work if you plan to make regular updates to the calendar. The short answer I think is &amp;#34;no&amp;#34; &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt; .. but the beauty of Liferay is that there is almost always a way, even if it may be a little more indirect.Option #1: TagsI can see in your screenshot you are showing the tags. I have no idea what your requirement is, so I am going to call your two calendars &amp;#34;soccer&amp;#34; and &amp;#34;meetups&amp;#34;. If you make sure to tag your events with either &amp;#34;soccer&amp;#34; or &amp;#34;meetups&amp;#34; then that should filter the items down for you. I know what you are thinking -- &amp;#34;ugh, but what if someone forgets?&amp;#34; .. fair point. You could pair that solution with a Service Wrapper that is used to intercept and change the definition of saving event entities (I think they are CalendarBooking models, but I am going from memory on that). When the item is being saved you can lookup the calendar and if the tag has not been added, then you could do it automatically. In fact, if you do something generic where you tag the items with the name of the calendar then it&amp;#39;s all automated for you anyway. The nice thing about this is when you add a third calendar (which you also want to display in the assets list) everything you need is already there, you just need to update the Asset Publisher to include a second tag. It&amp;#39;s a bit &amp;#34;hacky&amp;#34; in some respects, but it leverages the out of the box, asset api and a service wrapper -- all things that are bread and butter Liferay.&lt;br /&gt;Option #2: Roll your ownAlternatively, you could roll your own portlet of course and then use the AssetEntryQuery to specify all the details you are after for filtering and such. In the end though I think you would end up with something pretty close to Option #1, but then you would also have to maintain the code and such. I&amp;#39;d start with #1 and only go this route as a fallback. </summary>
    <dc:creator>Andrew Jardine</dc:creator>
    <dc:date>2019-07-24T13:45:23Z</dc:date>
  </entry>
  <entry>
    <title>RE: How can an asset publisher filter by just one calendar in a scope?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114407326" />
    <author>
      <name>Mohammed Yasin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114407326</id>
    <updated>2019-07-24T13:01:15Z</updated>
    <published>2019-07-24T13:01:15Z</published>
    <summary type="html">Hi,&lt;br /&gt;      You can select  manual selection instead of dynamic asset selection and choose the calendar events which all  you want to show.</summary>
    <dc:creator>Mohammed Yasin</dc:creator>
    <dc:date>2019-07-24T13:01:15Z</dc:date>
  </entry>
  <entry>
    <title>How can an asset publisher filter by just one calendar in a scope?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114239654" />
    <author>
      <name>Ben Kinsey</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=114239654</id>
    <updated>2019-07-09T23:47:24Z</updated>
    <published>2019-07-09T23:47:24Z</published>
    <summary type="html">When using an asset publisher to display calendar events, is there a way to filter to a particular calendar instead of just all the calendars from within the scope? So if my  parent site has two calendars, how can I make this asset publisher only show events of one of those two calendars?&lt;img src="/documents/portlet_file_entry/14/image--tempRandomSuffix--bbkpUend.png/4baf6dc6-85fe-3f8c-2acd-1842033df983" /&gt;</summary>
    <dc:creator>Ben Kinsey</dc:creator>
    <dc:date>2019-07-09T23:47:24Z</dc:date>
  </entry>
</feed>
