XF 2.1 Modify quick_reply_macros template for thread_view only

abdfahim

Well-known member
Licensed customer
I would like to do some modification in quick_reply_macros template, however, want to see that change on thread_view only. The problem is, quick_reply_macros is also being called from conversation_view and profile_post_macros. As a result, the changes I did is visible in profile post page and conversation.

Is there any way I can check the template it (quick_reply_macros) was called from so that I can use an IF loop to make changes on thread_view only?
 
HTML:
<xf:if is="$template == 'thread_view'">
    modifications for thread_view template only
</xf:if>

Well, I tried that but it seems like there is no variable called $template. E.g., when I use {{ dump($template)}}, it gives the following output
195578
 
Back
Top Bottom