sobrenome Posted May 3, 2015 Share Posted May 3, 2015 Is there something wrong here? {{if $record->customFieldDisplayByKey('metodo_de_preparo') OR $record->customFieldDisplayByKey('tempo_ao_fogo') OR $record->customFieldDisplayByKey('tempo_total_de_preparo') OR $record->customFieldDisplayByKey('porcoes') }} HTML to display {{endif}}The system is returning:Error code: EX0 Link to comment Share on other sites More sharing options...
不中用 Posted May 4, 2015 Share Posted May 4, 2015 Is there something wrong here? {{if $record->customFieldDisplayByKey('metodo_de_preparo') OR $record->customFieldDisplayByKey('tempo_ao_fogo') OR $record->customFieldDisplayByKey('tempo_total_de_preparo') OR $record->customFieldDisplayByKey('porcoes') }} HTML to display {{endif}}The system is returning:Error code: EX0 .I think "customFieldDisplayByKey" is taking 2 values ..something like this .. $record->customFieldDisplayByKey('FIELD-KEY', 'display') . Link to comment Share on other sites More sharing options...
sobrenome Posted May 4, 2015 Author Share Posted May 4, 2015 I have ignored the second value before. It's not the problem... Link to comment Share on other sites More sharing options...
sobrenome Posted May 5, 2015 Author Share Posted May 5, 2015 I have solved it: you cannot add new line inside {{ }}. The php code has to be written straight. Link to comment Share on other sites More sharing options...
不中用 Posted May 5, 2015 Share Posted May 5, 2015 I have solved it: you cannot add new line inside {{ }}. The php code has to be written straight. . I think I might had struggled with that one before .. that solved it .. . Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.