XF 2.2 More than one LastThread in $extras.LastThread

Hi there
Can i get more than one thread in $extras.LastThread
I found that array in node_list_forum Template Name (xenf 2.2.5)
 
No, the code expects to only have a single LastThread in there and changing it to multiple would very likely break existing areas of the code that use that.

You'd potentially need to add a whole bunch of additional code in order to performantly expose a number of last threads under a new variable name, including the ability to cache an array of last thread IDs for each forum, and a system to fetch thread information for all of them in as few queries as possible and make it available via $extras.
 
XenForo ORM doesn't support many to many relation. So you want to call all this on all the nodes with more then one LastThread. By calling this in the relation would not be possible but you can do that by some method and merge it into the extras on some seperate index if you want.
 
Back
Top Bottom