• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

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

CyberAP

Well-known member
#1
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.
 

CyberAP

Well-known member
#5
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.
 

Mike

XenForo developer
Staff member
#6
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).