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

XF 1.5 "New Post" sidebar on Thread view shows no data?

Discussion in 'Troubleshooting and Problems' started by radenmas, Nov 16, 2015.

  1. radenmas

    radenmas New Member

  2. Chris D

    Chris D XenForo Developer Staff Member

    You can't just add HTML to a template and expect it to have the data automatically available. You would need code in the controller to pass the data to the template.

    You may, instead, want to consider add-ons that may add the specific functionality or explore the use of an add-on that provides widgets, or similar.
  3. radenmas

    radenmas New Member

    actually i added it not manually using html but using xenforo's "include template" just like it was on forum index. i guess ill look for the index template again, looking for which one is the code for gathering data for the widget.
  4. Jeremy P

    Jeremy P Well-Known Member

    The code for gathering the data for display in the template is stored in PHP files, not templates themselves. Data is passed to the templates via the controllers.
    radenmas likes this.

Share This Page