Bug affecting version 1.3.1 (and maybe others)
If the database field content is blank for a given placeholder, like [+view.some_custom_field+], the placeholder is not replaced by blank content like we would expect.
If you want to display something different wether the field is empty or not, you cannot test for empty [+view.your_custom_field+].
Example
--------
Our snippet in a WebloginPE template:
[[Url_site_web? &url_site_web=`[+view.url_site_web+]` ]]
Wrong way to test for empty field:
<?php
if ($url_site_web) { // This test won't work.
echo "The website url is ".$url_site_web;
} else {
echo "No website url given.";
?>
Correct way to test for empty field:
<?php
if ($url_site_web == '[+view.url_site_web+]') {
return 'No website url given.';
} else {
return 'The website url is '.$url_site_web;
}
?>