Fields Question?

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

I am doing a realty site and have a view listings page. How do I keep fields such as Bedrooms, Bathrooms, etc. from showing up when searched if the fields are blank?

Thanks for you any help

John
John C. Morris
Interdimensional Designs
www.covdesigns.com

Re: [blind2uriz] Fields Question?

By ross - February 16, 2009

Hi John

Thanks for posting!

There will be a little bit of PHP needed to hide fields that don't have values. Here's an example:

<?php if ($record["fieldName"]): ?>
Field Name: <?php echo $record["fieldName"]; ?>
<?php endif ?>


You would just need to make sure "fieldName" is switched to the proper field name.

Does that make sense? Give that a shot and let me know how you make out :).
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/