EMLH: compile Smarty
- You cannot open a new topic into this forum
- Guests cannot post into this forum
msg# 1
in multimenu i want to assign a negative value in persian and positive value in english so i input like this:
[ en]200[ /en][ fa]-200[ /fa]
and smarty works fine when i call it by value in template:
<{ $block.block_size }>
but in if tags it doesnt work:
<{if $block.block_size >= 0}>
is there any solution for it?
Votes:4
Average:7.50
msg# 1.1
You should learn how EMLH works.
Anyway try
<{if easiestml($block.block_size) >= 0}>
Votes:3
Average:6.67
msg# 1.1.1
Yes it works!
of course i do it in block.php like this:
$block['block_size'] = easiestml($options[8]);
thank you
Votes:7
Average:10.00