امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
Hi,
I'm trying to set a variable in an XF1 template to the result of some nested ternaries. I have it working in XF2, but can't get it to work in XF1.
Here's what I have:
Code:
But it's not resolving that variable to the result of the ternary, it's resolving it to the string literal: {{ $forum.node_id ? $forum.node_id : ($thread.node_id ? $thread.node_id : -1) }}
I've...
Read more
I'm trying to set a variable in an XF1 template to the result of some nested ternaries. I have it working in XF2, but can't get it to work in XF1.
Here's what I have:
Code:
<xen:set var="$nodePart">{{ $forum.node_id ? $forum.node_id : ($thread.node_id ? $thread.node_id : -1) }}</xen:set>But it's not resolving that variable to the result of the ternary, it's resolving it to the string literal: {{ $forum.node_id ? $forum.node_id : ($thread.node_id ? $thread.node_id : -1) }}
I've...
Read more
