Dynamically Showing Module in Email Based on Segment | Community
Skip to main content
Bryan_Epstein
New Participant
November 15, 2018
Question

Dynamically Showing Module in Email Based on Segment

  • November 15, 2018
  • 1 reply
  • 7709 views

We are creating an email that will be full of dynamic content utilizing multiple segments. For this email, we would like for the default status to essentially hide the module completely. At this time, we can clear the content from the module, but not from the module itself.

Has anyone experienced anything similar to this or does anyone have a solution for how to resolve this?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Employee
November 15, 2018

Hi Bryan,

You cannot create dynamic modules per say only the sections within the module can be made dynamic.

Thanks

Floyd

Bryan_Epstein
New Participant
November 15, 2018

Any suggestions for how to accommodate what we are looking to do?

SanfordWhiteman
New Participant
November 15, 2018

Two Velocity tokens.

You wrap the section in these tokens (one before, one after).

The first token either outputs an open comment tag (<!--) or nothing, depending on the segment membership.

The second either outputs a close comment (-->) or nothing, according to the same rules.

Thus you can completely comment out a section (though it's still technically in the HTML, if that matters) removing it from the layout.