template: if does not work if $var does not exist?

R

Robert9

Guest
Member
Code:

Code:

Code:
<xf:if is="{{$forum.node_id}}">
      do something
    <xf:else />
      do something
    </xf:if>
This works as long I have $forum;
but it does not work, when there is no forum.

How can I do an isset() in a template?

Continue reading...

Continue reading...
 
BlackSpigot General Chat
Rules Help Users
    H @ HelpMe55: i had this problem already once and they helped me last time, dont know why they dont help me now
    Top