Use custom page type for event (booking system)

Laurin Stoll asked on January 2, 2017 17:23

It it possible to use a page type other than CMS.BookingEvent for the event management? We need the attendee management features in Social & Communiy > Events. Displaying the list of events etc. will be done with custom code, not existing Kentico components. The fields of CMS.BookingEvent would all be present in the custom page type, along with some additional ones.

As an alternative, is it possible/ a good idea to add the additional fields to CMS.BookingEvent?

Correct Answer

Roman Hutnyk answered on January 2, 2017 17:40

It is possible to modify CMS.BookingEvent page type. Go to Page Types app -> search for booking event -> edit -> Fields -> this where you'd add new fields.

I'd recommend to stick with this page type for event management.

3 votesVote for this answer Unmark Correct answer

Recent Answers


Brenden Kehren answered on January 2, 2017 17:50

IN addition to what Roman stated, you can add custom event handlers and such for this page type to execute at different times. You can also create partial classes for your needs as well.

3 votesVote for this answer Mark as a Correct answer

Chetan Sharma answered on January 3, 2017 12:37

I don't think modifying Kentico's base page types is a good idea. When you are on multi-tenant website's server the changes in page type for one website will reflect globally. What you should do is it use Clone CMS.BookingEvent Page type. This will make sure that all the functionalities associated with it will be available along with events, workflows or wherever it is internally bind.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on January 3, 2017 15:31

Chetan, there is no reason really not to modify the base page types. In fact, you can build a whole site around your own custom page types if you want without using any of Kentico's base page types.

The page types we modify the most often are page, blog, blog month, blog post and event booking. All of these are base page types with built in functionality we've modified for over 9 years without issue. Once you clone them you lose that out of the box functionality. The OP is looking for the Event Booking functionality but needs to add some additional fields and functionality so why recreate it?

2 votesVote for this answer Mark as a Correct answer

Laurin Stoll answered on January 3, 2017 15:43

Cloning CMS.BookingEvent did not make the Event Booking functionality available for the cloned page type.
This would have been the preferred solution, but we have decided on extending CMS.BookingEvent with additional fields.

1 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.