Thanks for the very swift reply.
I created a snippet called "pWrap" as follows:
<?php
return "<p>$input</p>";
...as I currently only need to render "p" tags around the content, and call each TV like so:
But I’m still getting empty paragraph tags around empty TVs, which I’m trying to eliminate - are they added in Modx Revo by default?
Sorry - this is probably so simple to most people, but it’s all still quite new to me.
Edit: Realised quite quckly that the problem lay with my previous snippet, not Modx, and consequently I think I may just written my first ever piece of conditional code!!
<?php
if (!$input) return"";
else return "<p>$input</p>";
I love how Modx gives you this "safe" environmet for putting code into place, even if I am (at best) a complete novice.