RSS Feed/News Conditional Template Extension?

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
26,865
Points
823

Reputation:

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