Dealing with blank tags

Is there a way so that you can use a default text string if an available tag contains nothing?
For example if you were starting an email addressed to a company, and some of the subscribers in the list have their company name, whilst others dont; Would it be possible to address the email to "Your Company" etc.
Any thoughts on this?
Other wise its a case of changing the contents of the blank cells within the database to a string "Your Company".
 
You could try:
Code:
[FNAME:filter:defaultvalue(Your Company)]
So that when fname is empty, Your Company text will be shown.
 
Hmm tried, copying your exact code snippet, and with the organisation with no luck?
See the attachment as to the email?
Filter_Bug.png
 
right, because this tag has been introduced in the dev version only, my bad...So you'll need to wait for the update(no eta).
 
Unzip attached and put into apps/common/components/utils folder to override existing file then try again.
 

Attachments

  • EmailTemplateTagFilter.php.zip
    1.4 KB · Views: 6
Back
Top