S-Tags in auto-responders: Benefits of using Bracket vs XML syntax
When it comes to auto-responders for our donation and registration forms in LO, my organization has always used bracket syntax for the HTML versions and XML syntax for the plain text versions. The people who originally made these decisions have since departed, and I am curious if anyone knows a potential reasoning behind them.
Due to syntax challenges, I would like to use bracket notation in the plain text version of an auto-responder. Is there a potential drawback to doing so?
Bonus question: If anyone wants to show me how to convert the following to XML, I would be interested to learn. Assuming bracket notation works, though, this would be purely educational.
The snippet below uses the replaceall operator of the 130 S-Tag to convert the recurring frequency label to a form that fits the sentence structure. In attempting to recreate it in XML, I am running into issues with opening and closing tags and escaping quotation marks.
By making this gift every [[E130: "[[S120:dc:recurringFrequencyLabel]]"
"Monthly" "month" replaceall
"Quarterly" "quarter" replaceall
"Annual" "year" replaceall]] you are providing…
Thank you in advance for any insights!
Answers
-
Hello @Justin Wenzl,
There is no requirement in Luminate that one syntax must be used for HTML and the other for plain‑text messages, and both are processed the same way by the system.
I hope this helps.2 -
@Justin Wenzl, as far as the rationale, XML would be for when you need someone to be able to edit the text later and they can only use the WYSIWYG. XML will give them visual representation of your conditional and they can switch between cases to change what gets output.
It's just a really bad life if you have to do that, though.
1 -
Hey there, @Justin Wenzl.
There is no difference between the two. It is just a different way of writing out the S-Tag. The double bracket version will work both in the WYSIWYG and Plain Text Editor, where the XML will only work in the Plain Text Editor and show up as a code when viewing it on the WYSIWYG side after switching back from the Plain Text Editor.
For the S130 code that you have above, I say leave it as is as it will work in both the WYSIWYG an Plain Text Editor. What you are doing with that code is replacing the word "Monthly" with "month", "Quarterly" with quarter" and "Annually" with "year" with that code. Something tells me that this is for an autoresponder so that the text is lowercase and fits the sentence context it might be inserted into or data layer code that you might be using with Google Tag Manager.
I personally like the double bracket version of the code as they are easier to follow and see what is happening versus using the XML version, especially when there is conditional content in play in the code. I call it the "shorthand" version of it.
I hope this response helps.
Thanks,
Will
Principal Consultant, Luminate Online, Blackbaud Professional Services1 -
Thanks, everyone! This is great information, and it will certainly make things easier not having to try and translate the syntax all over again. Appreciate the insights!
0
Categories
- All Categories
- 6 Blackbaud Community Help
- 213 bbcon®
- 1.4K Blackbaud Altru®
- 402 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 360 Blackbaud eTapestry®
- 2.6K Blackbaud Financial Edge NXT®
- 655 Blackbaud Grantmaking™
- 576 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 939 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.6K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 248 ResearchPoint™
- 119 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 241 Member Lounge (Just for Fun)
- 34 Blackbaud Community Challenges
- 34 PowerUp Challenges
- 3 (Open) PowerUp Challenge: Chat for Blackbaud AI
- 3 (Closed) PowerUp Challenge: Data Health
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 792 Community News
- 2.9K Jobs Board
- 54 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)


