Conditional Template Extension?

I've got template_a with an extension in it

Code:

Код:
<xf:extension name='extension_name'>
   original stuff
</xf:extension>

and then I extend that in template_b

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

Читать далее...
 
Активность
Пока что здесь никого нет
Назад
Верх Низ