Custom handler class for content types

Naz

XenForo developer
Staff member
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:
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
 
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?
 
Back
Top Bottom