RSS to Email - Colour coding stories


I'm trying to build an email design which pulls through stories via RSS.  Each story can be any one of six categories and the design has colour coded each category differently (duplicating the website design).  The order of the stories could be anything eg:

Food (red)  |  Lifestyle (blue)  |  Entertainment (Green)
Lifestyle (blue)  |  Health (purple)  |  Food (red)

So I can't predict in the template which order the stories/colours will be displayed in.

Is there any way I can pull through a category or class name into the template from the RSS feed?  I've tried manipulating the author field to do this i.e.  class="<rssauthor" /> in the template but that just renders the tag rather than converting it to it's value.  I've also tried manipulating the RSS feed itself to use <author><![CDATA[ class="food"]]></author> but the template is being too clever and self closing the div resulting in <div>food, I've even tried <author><![CDATA[<div class="food">]]></author> in the RSS feed but that results in &lt;div class="food"&gt; being shown in the page!

Is there a way of doing this or am I attempting the impossible?


roshodgekiss roshodgekiss, 4 years ago

Hey there Ali, thank you so much for being so experimental - a lot of the tips we provide come directly from customers like you that tinker with our app :) Unfortunately in this case, it isn't possible to refine or denote posts in an RSS feed by category, I'm sorry to say, which also rules out applying conditional styles.

By all means, i'll note your interest in this internally and let you know if it's something we add in a future update. Sorry about this - it's an excellent idea, though!

Get in touch with us on Twitter:
We're also on Facebook:
Ali Ali, 4 years ago

Thanks for the reply, I think this is something I'd use quite often in the future as we create more and more RSS emails so I'll keep an eye out for an update.


roshodgekiss roshodgekiss, 4 years ago

Thanks Ali - we'll be sure to update this thread as soon as we have more info :)

Get in touch with us on Twitter:
We're also on Facebook:

200,000 companies around the world can't be wrong.

From Australia to Zimbabwe, and everywhere in between, companies count on 
Campaign Monitor for email campaigns that drive real business results.

Get started for free