Nulumia
Well-known member
I'm pretty sure I've seen this done before, but can't seem to track down where
..
Let's say you have a typical macro template, such as:
Template: some_template_macros
Then you call it with:
Next, I use regex modification to insert an include to end of file, which will contain additional macros (to hold code outside of the modification and keep things clean):
Then in the template: my_additional_macros
In all cases where I do something like
Is this possible?

Let's say you have a typical macro template, such as:
Template: some_template_macros
HTML:
<xf:macro name="version_one">
// stuff
</xf:macro>
<xf:macro name="version_two">
// stuff
</xf:macro>
Then you call it with:
HTML:
<xf:macro template="some_template_macros" name="version_one" />
HTML:
..
</macro>
<xf:include template="my_additional_macros" />
Then in the template: my_additional_macros
HTML:
<xf:macro name="version_three">
// stuff
</xf:macro>
<xf:macro name="version_four">
// stuff
</xf:macro>
In all cases where I do something like
<xf:macro template="some_template_macros" name="version_four" />
, this turns up blank. I figured setting the modification which inserts the template include to Execution: 1 would ensure the macros are present would help, but doesn't.Is this possible?