Navigation:  Mailings - Sending out newsletters > Templates - Re-usable text modules > Using text modules >

Dynamic text module

Previous pageReturn to chapter overviewNext page

With additional AGNITAS tags, your templates will become even more flexible. Imagine you have inserted several special offers each included in a separate text module into your template. Between special offers, a line of dashes should act as delimiter.

[agnTITLE type=1],
Welcome to this week’s special offers from your seed catalog!
[agnDYN name="SpecialOffer1"/]
--------------------------------------------------------------------------
[agnDYN name="SpecialOffer2"/]
--------------------------------------------------------------------------
[agnDYN name="SpecialOffer3"/]
Yours sincerely
Your Seed Newsletter Service

Now what if a newsletter only features two special offers? There will be no SpecialOffer3 special offer or text module. The OpenEMM will not insert anything there. This produces a redundant delimiter. A complex template with several text modules may look ugly as a result.

The special notation for the [agnDYN] AGNITAS tag can help:

[agnDYN name="SpecialOffer3"/]
--------------------------------------------------------------------------
[agnDVALUE name="SpecialOffer3"/]
[/agnDYN name="SpecialOffer3"/]

The line [agnDYN name="SpecialOffer3"] starts an area. Please note that the slash / is missing at the end of the tag. The OpenEMM now knows that it is not supposed to insert a text module, but that something else is to follow. The second line is the delimiter for your special offer. The new tag [agnDVALUE name="SpecialOffer3"/] inserts the SpecialOffer3 text module. The tag ends with [/agnDYN name="SpecialOffer3"]. Note this tag starts with a slash. This tells the system that the tag ends an area. It is very important to include the same text module in all three tags.

The sequence of three AGNITAS tags does the following:

If there is a SpecialOffer3 text module, the system inserts the whole text between [agnDYN name="SpecialOffer3"] and [/agnDYN name="SpecialOffer3"] in the e-mail. The text module is called up using the line [agnDVALUE name="SpecialOffer3"]. Other AGNITAS tags could also be used.
If there is no SpecialOffer3 text module, the system deletes everything between [agnDYN name="SpecialOffer3"] and [/agnDYN name="SpecialOffer3"]. The finished e-mail will contain neither a blank line nor a delimiter.