Ques/Help Variable to output node stats of a specific node?

S

sixlxvi

Guest
I tried to figure this out on my own but apparently it's not going to happen lol.

I want to add the discussion count of a specific node to a widget. I dumped the variables:

1646211858769.png

The node ID I want is 4. So based of that, I'm working with $nodeExtras, discussion_count, and 4. I tried a bunch of stuff to see if I'd get lucky and guess correctly, to no avail.

<xf:set var="$nodeExtras" value="{$xf.discussion_count.4}" />
<xf:set var="$node ==...

Read more

Continue reading...