I’m trying to print out fax numbers, phone numbers, urls, etc.. If they all have data, then the display would look something like this:
Phone: 555-555-5555, Fax: 555-555-1234, www.website.com
But let’s say they only put in a phone number and website. Then the output should look like this:
Phone: 555-555-5555, www.website.com
I can add the comma to the end using the cat string output modifier (
http://rtfm.modx.com/display/revolution20/Input+and+Output+Filters+%28Output+Modifiers%29)
It looks like this, [[*expo_company_phone_number:cat=`,`]]. How do I add text before the word? Is there a modifier for this or am I going to need to do some sort of script to check if the tv is empty or not?