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

XenForo "Best" practices

Discussion in 'XenForo Development Discussions' started by Jeremy, Dec 14, 2010.

  1. Jeremy

    Jeremy Well-Known Member

    I went for a stress reliever of coding for XenForo... and I'm just in a delusional state of confusion. What's be best practice on using a node type. I want to create an application where users will post into it, etc. But, I am not sure if I want to create my own "node type" or completely go away from XF and create my own set up... I'm leaning towards Node type, but I'm just completely and utterly lost...
  2. Jeremy

    Jeremy Well-Known Member

    Also... with this, I may or may not want them to be displayed on the forums-index. Like I may want X to be displayyed there but Node Y should be on the add-on's index only. Is THAT possible?
  3. Shadab

    Shadab Well-Known Member

    IMO, a "content type" would be more appropriate here. Create a content type, and the associated model, datawriter and controller for displaying the content. Now if you want to list the content inside the node tree, create a new "node type" which would display a simple paginated list of your content. To put this into perspective, in xenforo...

    » Thread and Post (which contains the actual content) are content types.
    » Forum is a node type which shows a list of threads in it.
  4. Jeremy

    Jeremy Well-Known Member

    Yeah, but I have a content type of X. Do I create another content type of Y which stores X? And have replies as another content type stored in X?
  5. ragtek

    ragtek Guest

    Jeremy likes this.
  6. Jeremy

    Jeremy Well-Known Member

    Yes, it does! So, I will be doing everything as content types as I want a main "Category" for my content, which will be one main thing, with comments and such below it. All like-able and report-able.

Share This Page