XF 2.2 Widget new posts

  • Thread starter Thread starter Deleted member 184953
  • Start date Start date
D

Deleted member 184953

Guest
Hello,

Is it possible with conditional in the widget settings to display only threads which have at least 1 answer ?

Thanks !
 
Hello,

It seems that the variable is simply threads

Capture web_14-9-2021_141912_localhost.jpeg

and first post is $firstpost

Capture web_14-9-2021_142149_localhost.jpeg

So now i have to figure out how to write the condition right ?
something like if $thread has $firstpost then display = ok but with the right xenforo syntax ! 🙃
 
I expect you likely want to use reply_count.

So something like: $context.thread.reply_count > 0 .

Note however that the display condition only affects where and how the widget is shown - it does not affect widget content.

So the above statement will only show the widget in threads which have at least 1 reply.
 
ok i see now $reply_count in thread_view template.
So the above statement will only show the widget in threads which have at least 1 reply.
The exact opposite i wanted...
So it's not possible to do what i want in this way, it will require custom dev right ?
 
Back
Top Bottom