Conditional Template Extension?

Status
This content is read-only, or is not open for further replies.

kirsty

Guest
offline
I've got template_a with an extension in it

Code:

Code:
<xf:extension name='extension_name'>
   original stuff
</xf:extension>

and then I extend that in template_b

Code:

Code:
<xf:extends template='template_a'>
<xf:extension name='extension_name'>
  replacement stuff
</xf:extension>

which works fine.

But actually I only want to replace things conditionally. This will replace it only if the condition is met, but otherwise it'll be blank.
Code:

<xf:extends template='template_a'>...

Read more

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom