XenForo Widget condition for thread/page length

M

makanyane

Guest
I have a widget display condition that works for widgets in thread_view sidebar
Code:

$context.thread.reply_count > 10
with the aim of limiting the amount of widgets displayed on vertically short pages.

I'm trying to work out a way of also accessing the page number or some other variable in the thread so I can also stop the widgets displaying
on the 2nd/later pages, so for a site where I have 30 replies per page it would look like

Code:

$context.thread.reply_count > 10 AND $xf.page == 1 OR...

Read more

Continue reading...