Earl
Well-known member
In XenForo core templates:
What does it mean?
According to this post:
This one is a bit confusing,
Looks like it means the macro name is
Is that correct?
If that's the case, this
(I used the template search with
And we can extend that child macro too because it also has extensions named
could anyone please explain this a little bit further?
Thanks in advance.
post_question_macros template has <xf:macro name="answer" extends="post_macros::post">What does it mean?
According to this post:
"post" is supposed to be the macro name, But it also hasWhen calling a macro, we now generally prefer<xf:macro name="template_name::macro_name">over<xf:macro template="template_name" name="macro_name">although both options are supported.
name=" " attribute and extends="post_macros::post" both parts at the same time, but no template=" " attribute being used.This one is a bit confusing,
Looks like it means the macro name is
answer and it's a child macro that extending another macro named post in the post_macros template.Is that correct?
If that's the case, this
answer macro is in this post_question_macros never get referred from anywhere.(I used the template search with
name="answer" and I got nothing but only the post_question_macros, which mean it doesn't get called from anywhere)And we can extend that child macro too because it also has extensions named
main_cell, extra_classes, etc. In that case, we have to call that child of that child macro post_macros::answer Right?could anyone please explain this a little bit further?
Thanks in advance.
Last edited: