[RSS Feed/News] Adding a new variable to post_macros

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
I need to generate a new dropdown menu item in post_macros. This dropdown is generated on the fly based on some XF options. It would be very easy to generate this dropdown right in the template without going down into a template render listener.

Problem is, I don't want to regenerate this dropdown HTML each time post_macro is invoked. So I had the bright idea to save the variable once, in thread_view, and then post_macros would be able to access it. But it's not working. What am I doing...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom