CMS Development

designfrance
Participant | Diamond Partner
Participant | Diamond Partner

double feed rss newsletter

Hello,

I am in the process of integrating a newsletter in HTML / HUBL. The customer would like to have two Rss feeds in this newsletter. Only I don't know how to integrate this two feeds...

If someone have the answers 

 

 

0 Upvotes
1 Reply 1
kamlesh_k
Member | Diamond Partner
Member | Diamond Partner

double feed rss newsletter

What RSS feed currently you are using internal or external?  if you are using hubspot RSS feed then you can use this code twice.

you can make two separate custom module for RSS feed and use this use code. or if you are using external RSS then you can't make it twice.

 

<!-- ==== rss blog fiddle table ==== -->
<table cellpadding="0" cellspacing="0" border="0" width="100%">
    <tbody>
        <tr>
            <td valign="top" colspan=12 width="100.0%">
                <table cellpadding="0" cellspacing="0" border="0" width="100%">
                    <tbody>
                        <tr>
                            {% set rec_posts = blog_recent_posts('4692367500(put blog id or blog filed name)', 3) %}
                            {% for rec_post in rec_posts %}
                            <td valign="top" colspan=4 width="33.33333333333333%" style="width:33.33333333333333%;" class="column" style="padding:0 10px;"> 
                                   <table cellpadding="0" cellspacing="0" border="0" width="100%">
                                        <tbody>
                                            <tr>
                                                <td valign="top" colspan=12 width="100.0%" style="text-align:center">
                                                     <img src="{{ rec_post.featured_image }}" alt="Featured Image" style="width:180px !important;">  
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="top" colspan=12 width="100.0%" style="color:#1841a0; padding:8px 0; font-size:15px; line-height:16px; font-family: Trebuchet MS,Verdana,sans-serif; font-weight: bold; font-style: normal; text-align:center">
                                                    <a href="{{ rec_post.absolute_url }}" style="text-decoration:none; color:#1841a0;"><span style="color:#1841a0; text-decoration:none; font-size:15px; line-height:16px; font-family: Trebuchet MS,Verdana,sans-serif; font-weight: bold; font-style: normal;">{{ rec_post.name }}</span></a>
                                                </td>
                                            </tr>
                                             <tr>
                                                <td valign="top" colspan=12 width="100.0%" style="color:#555555; font-size:14px; padding-bottom:22px; line-height:16px; font-family: Trebuchet MS,Verdana,sans-serif; font-weight:normal; font-style: normal; text-align:left; text-indent: -10px;">
                                                    {{ rec_post.post_body|striptags|truncatehtml(150, '...', false) }}
                                                </td>
                                            </tr>
                                             <tr>
                                                <td valign="top" colspan=6 width="92%" class="column" style="width:92%; text-transform:uppercase; font-family: 'Trebuchet MS', sans-serif; background-color:#b0a17f;border-radius:20px; color:#ffffff;
                                                      display:inline-block; font-family:sans-serif; font-size:15px; font-weight:bold; line-height:40px; text-align:center; text-decoration:none; -webkit-text-size-adjust:none; min-width:115px; padding:0 20px">
                                                      <a href="{{ rec_post.absolute_url }}" title="Read More" style="text-transform:uppercase; color:#fff; text-decoration:none; font-size:15px; line-height:16px; font-family: Trebuchet MS,Verdana,sans-serif; font-weight: bold; font-style: normal;"><span style="color:#fff; text-decoration:none; font-size:15px; line-height:16px; font-family: Trebuchet MS,Verdana,sans-serif; font-weight: bold; font-style: normal; text-transform:uppercase;">Read More </span></a>
                                                </td>
                                                <td valign="top" colspan=6 width="8%" style="width:8%" class="column">
                                                    &nbsp;
                                                </td>
                                            </tr>
                                         </tbody>
                                   </table>
                              
                            </td>
                            {% endfor %}
                           
                        </tr>
                    </tbody>  
                </table>
            </td>
       </tr>
    </tbody>
</table>

 

0 Upvotes