3.1 Controlling $Includes with if/then

Moderator: crythias

Locked
kruegerM
Znuny expert
Posts: 213
Joined: 02 Dec 2010, 16:53
Znuny Version: 6.0.29
Real Name: Marc
Company: National Jewish Health
Location: Denver, CO

3.1 Controlling $Includes with if/then

Post by kruegerM »

Is it possible to use logic statements within DTL items such as language, include templates, etc?
I find reference back in the 2.0 developer manual of statements like:
<dtl if ($Text{"Lock"} eq "Lock") { $Data{"Language"} = "en"; }>
But I don't find anything like it in 3.1 documentation
Do such statements still work? If so can they be used to control what template is included, ie;

<dtl if ($Text{"Lock"} eq "Lock") { $Data{"$Include"} = "templateA"; }>

??
Locked