RSS Feed/News Widget condition for thread/page length

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
28,511
Points
823

Reputation:

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...
 
Status
Not open for further replies.
Top