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

Using attachements in an add-on

Discussion in 'XenForo Development Discussions' started by TheBigK, Mar 20, 2013.

  1. TheBigK

    TheBigK Well-Known Member

    We are trying to implement attachment upload on add on and need to how to deal with content type? Do we just need to extend AttachmentHandler? Do we need custom js?
     
  2. TheBigK

    TheBigK Well-Known Member

    Can someone give us pointers here?
     
  3. Chris D

    Chris D XenForo Developer Staff Member

    This is a very complicated thing to do and the best bit of advice I can give is to study in detail the exact way that XenForo handles it by default.

    To answer your question you will need to set up a custom content type which specifies a custom AttachmentHandler.

    You shouldn't need any custom javascript.

    One thing that might help. If you're buying the Resource Manager, this will show you perfectly how a custom attachment type is added using an add-on. You will be able to see what templates need to be created, what Model functions are required, what an AttachmentHandler should look like, etc.
     
  4. TheBigK

    TheBigK Well-Known Member

    Yes, I'm buying resources manager. But it's still 6 more days before it launches. :confused:
     

Share This Page