• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Custom handler class for content types

Chris D

XenForo developer
Staff member
#2
This add-on makes it a lot easier and provides a GUI:
https://xenforo.com/community/resources/content-type-management.2513/

The rough process, though, is:
  1. Record in xf_content_type for the content type
  2. Record/s in xf_content_type_field to define what the handler is, what it does and its class
  3. Queries during add-on install to insert those content types in the database
  4. Queries during add-on uninstall to remove those content types (and the content they generate) from the database
 

NixFifty

Well-known member
#3
This add-on makes it a lot easier and provides a GUI:
https://xenforo.com/community/resources/content-type-management.2513/

The rough process, though, is:
  1. Record in xf_content_type for the content type
  2. Record/s in xf_content_type_field to define what the handler is, what it does and its class
  3. Queries during add-on install to insert those content types in the database
  4. 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?