Thanks for the pointers. I’m trying the PHx route as it seems that could be useful to know about in future.
My Ditto call:
[!Ditto? &parents=`6` &depth=`1` &tpl=`testimonial` &sortDir=`ASC` !]
’testimonial’ chunk (my Ditto template):
<dt>[+pagetitle+], [+phx:if=`[*authorurl*]`:isnot=``:then=`{{testimonialauthorwithlink}}`:else=`{{testimonialauthorwithoutlink}}`+]</dt>
<dd><blockquote>[+content+]</blockquote></dd>
[*authorurl*] is a template variable (url) which may or may not have a value.
{{testimonialauthorwithlink}} chunk:
<a href="[*authorurl*]">[+description+]</a>
{{testimonialauthorwithoutlink}} chunk:
However, I’m not getting anything appearing, whether or not the authorurl template variable has a value.
Can anyone see where I may be going wrong?