Discussion in 'XenForo Development Discussions' started by NixFifty, Aug 21, 2014.
What is the process of creating a new handler class for use with content types?
This add-on makes it a lot easier and provides a GUI:
The rough process, though, is:
Record in xf_content_type for the content type
Record/s in xf_content_type_field to define what the handler is, what it does and its class
Queries during add-on install to insert those content types in the database
Queries during add-on uninstall to remove those content types (and the content they generate) from the database
Thanks for response. I believe the process you listed is for adding an existing handler to a content type. What if I wanted to create my own handler (in this case, similar to report_handler_class) to add to content types?
Separate names with a comma.