Please post all pre-sales questions of all products on this forum

Overrides in the event table lists

  • Bamce Fabricius (TekFix)
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
10 years 2 months ago #58304 by Bamce Fabricius (TekFix)
Overrides in the event table lists was created by Bamce Fabricius (TekFix)
I have been doing some changes as an override in the /common/events_table.php changing what fields are visible and adding some more information for the registration status. We have several recurring events that make the list of events very long. The participants need to register only for the parent event, not for the child events of hese recurring events. The parent events have individual registration enabled and the child events have registration disabled.

Now, I wonder what code I need to identify the child events in that file so that I can make the child events not show up in the list. I still want to show standard events that have registration disabled, so "if ($item->registration_type != 3)" is not enough - that renders all those events invisible... I need something more, but can't figure it out... :side:

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago - 10 years 2 months ago #58326 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Overrides in the event table lists
if ($item->parent_id > 0)
{
//This is child event
}

That code above should help

Tuan
Last edit: 10 years 2 months ago by Tuan Pham Ngoc.

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham NgocGiang Dinh TruongMr. Dam