• 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?

Chris D

XenForo developer
Staff member
#2
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
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.
 

Jeremy P

Well-known member
#4
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.