Thursday 29 December 2005 2:16:18 pm
About your other issues: 1) The error means that the result of .content is a string and not an object/array with the attribute/entry 'is_empty'. Try removing the .content in the comparison:
{if $node.object.data_map.oppdragsgiver.is_empty|not}
2) It's not because gt() can compare with an array, that eq() can do the same. The documentation of eq() doesn't mention that arrays as input will be converted to their length. To do explicit length checks, use the following code:
{if count( $module_result.path )|eq( 2 )}
3) This most likely means there are errors in the template code which result in invalid PHP code as soon as compilation is enabled. Try to use the template checking script in bin\php\eztemplatecheck.php and check each template marked as invalid by the script.
Hans
http://blog.hansmelis.be
|