1. 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

Discussion in 'XenForo Development Discussions' started by NixFifty, Aug 21, 2014.

  1. NixFifty

    NixFifty Well-Known Member

    What is the process of creating a new handler class for use with content types?
  2. Chris D

    Chris D XenForo Developer Staff Member

    This add-on makes it a lot easier and provides a GUI:

    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
  3. NixFifty

    NixFifty Well-Known Member

    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?

Share This Page