Badges
Accepted Solutions
Likes Received
Posts
Discussions
Ideas
Blog Posts
You could probably do something using a List variable with values ltr,rtl in the template and then use that to change the value for the direction attribute e.g. https://mjml.io/try-it-live/L4aTkYWjm But depends how you want to display on smaller devices also
Thank you (again) Sanford! So convert to UTC then display in Europe/London.Just 1 thing, in your example you set:#set( $ISO8601DateTimeUTC = "yyyy-MM-dd'T'HH:mm:ss" )Without a Z, is that an omission? It seems to work both with and without, so I'm guessing this is a rare case of Velocity being a bit...
HiI'm working with date times in Velocity and struggling to get a date to display in the correct format. I have an incoming date string in the format: '2023-04-04T13:00:00Z'. So the incoming time is 1300 UTC which is 1400 BST I'm using @SanfordWhiteman examples from here: https://blog.teknkl.com/vel...
Totally possible in HTML by setting a background image, but have to allow for how image appears on mobile vs desktop. Also how messages of different length might appear. But super quick example in MJML to get you started: https://mjml.io/try-it-live/0mCBJ2G3C Can play around with the section attribu...
So further updated on this if anyone is interested, it seems script tokens do work on a program cloned via the API, but not when the email is within a campaign folder... And a further update to my update. It's not only script tokens that seem to be affected, simple text tokens also don't render when...
Hi @SanfordWhiteman - just got around to testing this but seems script tokens do work when creating a new program via the API
Hi Sanford - that was actually cloning via API. I thought it may have been related to fact I was cloning an event program to be a child of another event program. But also tested a clone which wasn't child program and script tokens still didn't work, that was both new and existing script tokens on th...
Hi Seem to have stumbled on another velocity script issue in that script tokens don't appear to work on programs created via the API. There's no error, just seems to ignore the token(s) completely, although inherited script tokens do still appear to work, but that's not much help in the case I'm usi...
Hi Just wondering if anybody else has noticed some changes to way Velocity script renders emails in preview mode: 1. It seems to display a 'default' version of the email even when no contact has been selected in the preview, I'm sure it used to only render when a person was selected in the 'View by'...