XF / News Conditional Template Extension?

Status
Not open for further replies.

Bots

Registered
Joined
May 3, 2024
Messages
3,593
Reaction score
1
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...
 
Status
Not open for further replies.
Top