Error message when showing Events using event template

Hello Konstantine,

Thank you for your reply.

I see 10 events imported in the contents. I understand that they can be imported only once, however this means that if the import in the feed LHC-CSAP runs earlier than the feed CSAP, the event will appear only in the LHC-CSAP and not in the general CSAP?

All 10 events are (correctly) in this view: https://test-csap.web.cern.ch/events

Outside this view, I have no events in the homepage and in the specific landing pages i see all the imported events for every child category CSAP (while there, I would like to see only the today+future events).

I hope this helps,
Thank you.
Katerina

Hi Katerina,

Every time that a feed queries Indico API, the API returns all the events of that category and its subcategories. The problem here is the CSAP feed which is the parent feed for the rest.

If CSAP runs earlier than the other feeds then all of their events will be imported under CSAP since they are all included in it. When the rest of the feeds run separately no event will be imported since they have previously imported by CSAP. Events can be imported only once.

In case than any of the other feeds run earlier than CSAP then their events will go under these feeds and not under CSAP.

I advise you to remove parent categories like CSAP that pull all the events from their subcategories and use single categories for your feeds.

Now on your home page the Events block that you placed is the FEED Block:CSAPs
If you go to that view https://test-csap.web.cern.ch/admin/structure/views/view/indico_events_block_with_details/edit/block_feed_6 you will see that you filter events with Category ID 5118.
If you go to the CSAP feed page https://test-csap.web.cern.ch/feed/6 you will see that there are some events listed. This view is wrong because if you edit each one of these events you will see that the category id is not 5118 but 5120.

This happens because every time the CSAP runs the events are imported as category id 5118. When the other feeds run the update the same events imported by CSAP with their category id and hence they changed from 5118 to 5120.

As I said the solution is to remove the feed with the parent category id 5118 and leave only feeds with single categories.

Hello Sotiri,

Thank you for your explanation.
I will remove the CSAP feed, however I do have two related questions:

  1. The events already imported in CSAP will disappear or remain since in reality are not under the category 5118?
  2. How could I create the view that we want in the site’s home landing page? There, ideally, the goal is to show the future events of all 4 CSAPs (PS, SPS, LHC, Joint). Is it possible?

Thanks for your help.
Regards,
Katerina

Hi Katerina,

Remove all events before deleting the feed. If you already deleted the feed then delete the events manually from the content page. Then re-import the events from the feeds.

Go to that view that you have on your front page https://test-csap.web.cern.ch/admin/structure/views/view/indico_events_block_with_details/edit/block_feed_6 remove the category id from filter criteria and the Start Date. Then add the End Date field in filter criteria with the followig:

Operator: is greater than or equal to
Value type: An offset from the current time such as “+1 day” or “-2 hours -30 minutes”
Value: now

This view should display the current and upcoming events.

Hi Sotiri,

Thanks a lot.
Everything seems to be in place and working.

Many thanks to both of you!
Katerina