jdeg
Active member
I'm very new to creating addons for XF. I more than likely don't make any sense yet
I'm using the hook "message_below" and want to say "If first post on the page, do this"
I understand I can use {$post.position} % {$xenOptions.messagesPerPage} == 0 to do this directly in the template, but will the callback have the same access to the params or do they have to be explicitly passed? I see params="{xen:array 'post={$message}','message_id={$messageId}'}" in the hook so I assume things are being passed, right?
I also need to get the thread title. What do I use to get that? {$post.title} ?
I'm using the hook "message_below" and want to say "If first post on the page, do this"
I understand I can use {$post.position} % {$xenOptions.messagesPerPage} == 0 to do this directly in the template, but will the callback have the same access to the params or do they have to be explicitly passed? I see params="{xen:array 'post={$message}','message_id={$messageId}'}" in the hook so I assume things are being passed, right?
I also need to get the thread title. What do I use to get that? {$post.title} ?