Pedantic addendum: you can loop over a DataList, not over a DataObject.
The template and the HTML fragment you posted do not match: I’m expecting a blank line and a 5 space indentation before the author span, so my guess is you are not rendering that template.
Hi ntd,
Yes, sorry, DataList .
Thank you for your reply, but I don’t understand it.
What I don’t understand is the fact, that the <% if $Author %>
is obviously true, otherwise the span line with the class “author” wouldn’t be showing, so there is a mismatch and I have absolutely no idea why this is.
If there were no Author, then the span line wouldn’t appear.
I definitely render this template. I tested it by swapping the two.