Variable Images?

I'm new to CM but have done this in my PURL application. I didn't see anything about this in the docs or forum search so I wanted to get some feedback if this is possible.

Say I have 15 different images to display to 15 different list segments. Instead of splitting the list into 15 smaller lists and setting up 15 templates each with a different image, can I just do something like:

<img src="[variableimage].jpg" cm_dontimportimage>

Assuming I have the [variableimage] field in my list for each record?

Any reason why this wouldn't work, aside from putting load on my own server? Or can CM do this natively?


davidaf davidaf, 8 years ago

Hey ryanjkirk,

Yep, that's absolutely possible and done exactly as you have outlined. For more information, you can check out Smart Ways to use Custom Fields

The Campaign Monitor Blog – HTML email smarts to go with your good looks

See why 200,000 companies worldwide love Campaign Monitor.

From Australia to Zimbabwe, and everywhere in between, companies count on Campaign Monitor for email campaigns that boost the bottom line.

Get started for free