RSS feed and HubL

resolver

Highlighted

Anonymous

‎11-16-201612:29

Does anybody know the corred script/format is to use an RSS blog listing in an email?

In the code I have " {% rss_listing "rss_listing" %} " but it renders strangely in the email (I can't change the width, font colour etc). Does anyone know how I can format this? I feel like it should be like html coding, but my trial and error isn't working.

I haven't worked too much with emails but I can imagine that you can't edit the HTML output from the RSS module. You can add custom CSS to improve the design but this isn't the best way because a lot of email readers (gmail for example) don't use classes, just inline-style.

So my advice is to use HubL functions (instead of modules) to manage the HTML output and the CSS at the same time. For example:

I haven't worked too much with emails but I can imagine that you can't edit the HTML output from the RSS module. You can add custom CSS to improve the design but this isn't the best way because a lot of email readers (gmail for example) don't use classes, just inline-style.

So my advice is to use HubL functions (instead of modules) to manage the HTML output and the CSS at the same time. For example:

I'm also trying to do this but I'm not getting it to work. Like aoifemoon, I also tried {% rss_listing "rss_listing" %}. That worked but I was unable to rearrange content how I want it. I'm trying to add an external RSS feed to a custom module so I can place it into a Drag-and-Drop email template.

I've tried blog_recent_posts() using your example and it worked for Hubspot blogs but I have an external RSS feed. Do you know if this function works with external RSS feeds?

So the only solution I have find out and we use for our clients is use the default RSS function, and customize the external RSS with the right marktup that you want to us (because I don't think you can edit the RSS marktup content within HubL).

In my case, we have setup in our server a service where we have some posibilities to customize the RSS in may ways, then it output the right marktup for the HS RSS reader. But of course is a premium service to offer to the clients, and not all of them want it.