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 <div class="food"> being shown in the page!
Is there a way of doing this or am I attempting the impossible?
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!
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.
Thanks Ali - we'll be sure to update this thread as soon as we have more info :)
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