I create a macro to display an image if a field image
is not empty.
I follow the suggestion from this link: Filter to Show Tiddlers with a Specific Empty Field
<$list filter="[all[current]tag[Colleague]]">
<$list filter="[all[current]has:field[image]">
<$macrocall $name="image-pretty" img={{!!image}} align="right" />
</$list>
</$list>
It seems it doesn’t work for me. A grey box is displayed in all tiddlers with/without image
field.
The generated html is
<img src="" class=" tc-image-error">
How should I achieve it?