How to display certain design elements only if field completed

4 posts by 2 authors in: Forums > CMS Builder
Last Post: June 20, 2008   (RSS)

Re: [dwelling] How to display certain design elements only if field completed

By Dave - June 20, 2008

dwelling, welcome to the CMS Builder forum! :)

I'd start by experimenting with the php if tag:

<?php if ($newsRecord['title']): ?>
Title: <?php echo $newsRecord['title'] ?><br>
<?php endif; ?>


Basically you just put the field you want to test in between the brackets (in red). Note that this won't display for blank -or- zero.

Give that a try and let me know if you need any assistance with it or if you need something more advanced and I'll do my best to help you out. :)
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] How to display certain design elements only if field completed

By dwellingproductions - June 20, 2008 - edited: June 20, 2008

That's just perfect! Thanks so much Dave.

By the way, we're loving CMS Builder. We're planning on integrating it into all future client sites. Keep up the great work!


Jeremy
---------------------------

Dwelling Productions

www.dwellingproductions.com

Re: [dwelling] How to display certain design elements only if field completed

By Dave - June 20, 2008

Thanks, great to hear! If there's anything else you need just let me know! :)
Dave Edis - Senior Developer
interactivetools.com