We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7971
    • 263 Posts
    Hello,

    When I did this PHx-Call I got an PHP error:
    PHx:
    [+phx:if=`[*news_file*]`:is!=``:then=`{{news_file}}`+]
    


    PHP Error:
    Parse error: syntax error, unexpected ')' in /www/htdocs/xxxxxxxx/assets/plugins/phx/phx.parser.class.inc.php(219) : eval()'d code on line 1
    
    Parse error: syntax error, unexpected ')' in /www/htdocs/xxxxxxxx/assets/plugins/phx/phx.parser.class.inc.php(219) : eval()'d code on line 1
    
    Parse error: syntax error, unexpected ')' in /www/htdocs/xxxxxxxx/assets/plugins/phx/phx.parser.class.inc.php(219) : eval()'d code on line 1
    
    Parse error: syntax error, unexpected ')' in /www/htdocs/xxxxxxxx/assets/plugins/phx/phx.parser.class.inc.php(219) : eval()'d code on line 1
    
    Parse error: syntax error, unexpected ')' in /www/htdocs/xxxxxxxx/assets/plugins/phx/phx.parser.class.inc.php(219) : eval()'d code on line 1
    
    


    I want that when the TV ist "not empty" that the chunk news_file will be shown.
    Can anybody help me?

    UPDATE: The PHP Error ist gone. The I wrote "phx" but that was wrong. "PHx" is right.
    BUT...the chunk will not shown when the TV is empty....

    My new call:
    [+PHx:if=`[*news_file*]`:is!=``:then=`{{tpl_news_file}}`+]
    
      • 7455
      • 2,204 Posts
      Try this:
      [+PHx:if=`[*news_file*]`:isnot=``:then=`{{tpl_news_file}}`+]
      
        follow me on twitter: @dimmy01