XF 2.2 In the template thread_view, how do add a prefix conditional statement?

gogo

Well-known member
For example, if is $thread.prefix.id=4 {...

If the value of prefixID 04 is applied, ...
 
Solution
Dump the vars for the thread_view template to see what's available and the exact format.

Code:
{{ dump(vars()) }}

thread_view_vars.png

In this case thread.prefix_id.
Dump the vars for the thread_view template to see what's available and the exact format.

Code:
{{ dump(vars()) }}

thread_view_vars.png

In this case thread.prefix_id.
 
Solution
Back
Top Bottom