I’m wondering about the best way to do the following...
I have a template for a directory of churches. That template has a bunch of template variables like so:
[*ChurchPastorFirstName*] [*ChurchPastorLastName*]<br>
<br>
Mailing Address:<br>
[*MailingAddressStreet*]<br>
[*MailingAddressStreet2*]<br>
[*MailingAddressStreet3*]<br>
[*MailingAddressCity*] [*MailingAddressState*] [*MailingAddressZip*]<br>
[*MailingAddressCountry*]<br>
<br>
Shipping Address:<br>
[*ShippingAddressStreet*]<br>
[*ShippingAddressStreet2*]<br>
[*ShippingAddressStreet3*]<br>
[*ShippingAddressCity*] [*ShippingAddressState*] [*ShippingAddressZip*]<br>
[*ShippingAddressCountry*]<br>
<br>
Phone: [*Phone*]<br>
Fax: [*Fax*]<br>
Email: [*Email*]<br>
Website: [*Website*]<br>
Now... my question is, what is the best way to hide or show data based on whether or not the TVs are empty? For example, I don’t want to show the Street2 or Street3 lines if the data is empty.
Should I just do this in a snippet using php and the getTemplate functions?
Thanks!