Email 2.0 mktoList with Commas IN the variable | Community
Skip to main content
Community Manager
Jul 4, 2018 12:32 AM UTC
Solved

Email 2.0 mktoList with Commas IN the variable

I'm trying to code a font-family in a variable list, but I'm running into some syntax errors...

utilizing the variable:

<meta class="mktoList" id="defaultfontGeorgia" mktoName="Font" default="Georgia" values="TrebuchetMS,Georgia,Arial,ProximaNova">

Now, technically the font-family for Georgia is: "Georgia,Times,Times New Roman,serif"

But I can't seem to nest a comma-separated list within the value options, which is already a value-separated list. Is there an escape character I can use?

Anyone know?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
Jul 4, 2018 3:01 AM UTC

No one said it would be pretty...

<meta class="mktoList" id="textFontFamily" mktoName="Main Text Font Family" values="Verdana&#x26;&#x23;&#x78;&#x32;&#x43;&#x3B;sans-serif,Georgia&#x26;&#x23;&#x78;&#x32;&#x43;&#x3B;Times New Roman&#x26;&#x23;&#x78;&#x32;&#x43;&#x3B;serif">

3 replies

SanfordWhiteman
Level 10
Jul 6, 2018 10:02 PM UTC

@JD Nelson​

Translate
SanfordWhiteman
Level 10
Jul 4, 2018 3:15 AM UTC

P.S. if you want to hide the messy-looking encoding, the dropdown is narrow enough that if you put a dummy font as the first font that should suffice -- like "Georgia Font Family" and "Verdana Font Family", etc.

Translate
SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
Jul 4, 2018 3:01 AM UTC

No one said it would be pretty...

<meta class="mktoList" id="textFontFamily" mktoName="Main Text Font Family" values="Verdana&#x26;&#x23;&#x78;&#x32;&#x43;&#x3B;sans-serif,Georgia&#x26;&#x23;&#x78;&#x32;&#x43;&#x3B;Times New Roman&#x26;&#x23;&#x78;&#x32;&#x43;&#x3B;serif">

Translate