$forum arg is passed in so it should be available.{{ ($forum.node_id == 34 AND $thread.reply_count > 1) ? 'extra-class' : '' }}
$forum.node_id with $thread.node_id. The node_id value is always available on the thread entity and the thread arg is always passed into this macro. However, there are some lists of threads where we don't pass the $forum arg in.I seem to be getting server errors with this code now.FWIW you'd probably might as well switch$forum.node_idwith$thread.node_id. The node_id value is always available on the thread entity and the thread arg is always passed into this macro. However, there are some lists of threads where we don't pass the $forum arg in.
ErrorException: Template error: Illegal string offset 'node_id'
internal_data/code_cache/templates/l1/s24/public/thread_list_macros.php:302
We use essential cookies to make this site work, and optional cookies to enhance your experience.