[RSS Feed/News] Make the number of posts on a thread_view page available for widget conditionals and more

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
I often want to display sidebar widgets only when there are enough posts on the page so that the widgets don't extend way below the list of posts.
It's a rough but effective way of displaying more widgets when there are more posts.
Is it possible to add a variable available to thread_view which is the number of posts on the page?
Like $xf.vars.posts so I can have the conditional $xf.vars.posts > 10 for example?

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom