XF 2.0 How to get first post in whats_new_posts results macro?

CyberAP

Well-known member
I want to retrieve the first post for each thread in whats_new_posts results macro. $thread does contain first_post_id, but is there any way to get the post message content just by template syntax? Similar to thread_preview: $firstPost.message.
 
If you expand the relations submenu it should be in there...

Liam
Thanks, it is there, the problem is that I can't distinguish between items that I can actually use and purely informative variables. For example there is one called AlertOptOut but I can't use it like that: $thread.AlertOptOut.
 
I don't see why the Thread entity would have that. That's part of the UserOption entity (which means it'd be $thread.User.Option.AlertOptout).
 
Top Bottom