3 posts by 2 authors in: Forums > CMS Builder
Last Post: February 15   (RSS)

Try this

<?php // if record show this
 if ($record['record']): ?>
<?php echo htmlencode($record['record']) ?>

<?php // if no record show this
 else: ?>
<?php echo "Colleague"; ?>
<?php endif ?>

Thanks Alan

I am hoping that there is a function to provide a fallback directly in the Newsletter.

When compiling a newsletter, to include a persons name, you would literally (no php in the newsletter itself) write: #name#

I used to use Campaign Monitor to deliver my emails. It has has a similar format for Placeholders, and had a function to provide a fallback in the placeholder itself. Placeholders in CM look like this: [firstname,fallback=Colleague]

Do you know if there is anything similar in cmsb?

Thanks

Jeff