XF 2.1 Passing arguments to post_macro after reply

AndrewSimm

Well-known member
I have an add-on that uses a template modification to pass a true/false article argument to post macro in the post_macros template.

Code:
<xf:macro name="post" arg-post="!" arg-thread="!" arg-article="">

If article is true then some other changes are performed.

My only issue is after replying to the article the post below "There are more posts to display" do not use the changes, but instead format like they do when displaying in the thread. If a refresh the page then everything shows correctly.

My question is where else do I need to pass the article argument to or what do I need to extend?

Screen Shot 2019-09-17 at 2.43.35 PM.png
 
Last edited:
Update: It looks thread_new_posts is where I needed to add arg-article. The only issue is that this template doesn't know if it is true or not.
 
Back
Top Bottom