Jon_Wright

Jon_Wright

Contact Me
Online Status
Offline
Date Last Visited
‎12-21-2022 11:17 AM
Level 4
Joined the community 23-01-2018
Rank Icon Level 4
  • Re: Email Templates change two values with one boolean

    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

    image_type
    Discussions
    950 1 0
  • solved badge Re: Date time formats in Velocity script

    Great - thanks!

    image_type
    Discussions
    5088 0 0
  • solved badge Re: Date time formats in Velocity script

    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...

    image_type
    Discussions
    5093 0 2
  • solved badge Date time formats in Velocity script

    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...

    image_type
    Discussions
    5100 0 4
  • solved badge Re: Overlaying text on top of a header/banner image in email - is it p...

    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...

    image_type
    Discussions
    2419 1 1
  • Re: Velocity script tokens do not work on programs created via API

    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...

    image_type
    Discussions
    2007 0 0
  • Re: Velocity script tokens do not work on programs created via API

    Hi @SanfordWhiteman - just got around to testing this but seems script tokens do work when creating a new program via the API

    image_type
    Discussions
    2038 0 0
  • Re: Velocity script tokens do not work on programs created via 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...

    image_type
    Discussions
    2064 0 3
  • Velocity script tokens do not work on programs created via API

    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...

    image_type
    Discussions
    2092 0 5
  • Changes to way Velocity script works in Preview mode

    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'...

    image_type
    Discussions
    1362 0 2

Top Badges Earned

Customize up to 8 badges at the top of your trophy case for all other Community members to see!Customize up to 8 badges at the top of your trophy case for all other Community members to see!
  • Give Back 50 Give Back 50 Earned on 10.19.22 Earned by 176 people Select to learn more
  • Applaud 5 Applaud 5 Earned on 10.19.22 Earned by 1842 people Select to learn more
  • Springboard Springboard Earned on 8.30.22 Earned by 210 people Select to learn more
  • Boost 10 Boost 10 Earned on 8.24.22 Earned by 710 people Select to learn more
  • Affirm 5 Affirm 5 Earned on 1.28.22 Earned by 152 people Select to learn more
  • Boost 5 Boost 5 Earned on 1.06.22 Earned by 1228 people Select to learn more
  • Ignite 10 Ignite 10 Earned on 11.16.21 Earned by 296 people Select to learn more
  • Affirm 3 Affirm 3 Earned on 10.20.21 Earned by 214 people Select to learn more
Public Statistics
Date Registered ‎01-23-2018 01:43 AM
Date Last Visited ‎12-21-2022 11:17 AM
Total Messages Posted 66
Likes Received 12
Likes given to