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

Content type Table

Discussion in 'XenForo Development Discussions' started by ajnos, Feb 9, 2011.

  1. ajnos

    ajnos Member

    For what is the "fields" field in the content_types table?

    Anybody have a add-on using custom content types and would share this?

  2. Shadab

    Shadab Well-Known Member

    Take a look at the "xf_content_type_field" table.
    The xf_content_type.fields field contains a serialized array of all the available fields for a particular addon.

    As a developer, there are various handlers available to you: Like, Search, Alert, Attachment, News Feed, Abuse Reporting, Spam Cleaner, etc. A total of 10 handlers in all. You can add each of these features for your content type by implementing a handler class for it.

    Whatever class you create as a handler, you need to add its name to the xf_content_type_field table, and rebuild the fields cache. This would update the serialized info in the xf_content_type table.
    ajnos likes this.
  3. ajnos

    ajnos Member



Share This Page