Embed RSS (XML) on campaign

76uk

Member
Hi,

Need a little help here. I'm trying to embed XML from RSS to my campaign, all tags work except [XML_FEED_ITEM_IMAGE].
I would like to know which part of RSS item pulled by this tag?

I've tried these:
- item.media:thumbnail.url
- item.media:content.url
- item.image
But none works.

Thanks
 
Hi Rob,
Thanks for that. I've checked that and used [XML_FEED_ITEM_IMAGE] but still no luck.
Here's what my RSS item look like:
Code:
<item>
<title>A Title</title>
<link>
http://domain.com/4321.html
</link>
<description>
Some description....
</description>
<media:content url="http://domain.com/images/image4321.jpg" type="image/jpeg"/>
<media:thumbnail url="http://domain.com/images/image4321.jpg"/>
<enclosure url="http://domain.com/images/image4321.jpg" type="image/jpeg"/>
</item>
 
Hey,

How about you try with:
Code:
<media:content="http://domain.com/images/image4321.jpg" />
or:
Code:
<enclosure url="http://domain.com/images/image4321.jpg" type="image/jpeg"/>
But not both
 
@twisted1919
THANKS!

This works (media:thumbnail and enclosure removed)
Code:
<media:content>
http://domain.com/images/image4321.jpg
</media:content>

Another simple questions.

1. Is it possible to use first rss item TITLE as email subject? If so, what tag should I use?

2. I have 5 RSS items and I want to have different placement of the items in the campaign like this:
- I want the first one to be placed as a headline, using a big image and a title plus rss item description.
- While the rest (2-5) are placed on sidebar of the campaign, using small images and titles only, without item description.
Can I do a numbered RSS tags, something like this:
Code:
[XML_FEED_BEGIN url='http://www.bata.com/news/feed/' count='5']
        <table>
            <tr>
                <td align="center" width="450">
                    <a href="[XML_FEED_ITEM_LINK_1]">
                        <img src="[XML_FEED_ITEM_IMAGE_1]" width="430"/>
                    </a>
                    <strong>[XML_FEED_ITEM_TITLE_1]</strong><br />
                    <p>[XML_FEED_ITEM_DESCRIPTION_1]</p>
                </td>
                <td align="center" width="150">
                      <table>
                           <tr>
                               <td>
                                   <a href="[XML_FEED_ITEM_LINK_2]">
                                   <img src="[XML_FEED_ITEM_IMAGE_2]" width="130"/><br />
                                   <strong>[XML_FEED_ITEM_TITLE_2]</strong>
                                   </a>
                               </td>
                           </tr>
                           <tr>
                               <td>
                                   <a href="[XML_FEED_ITEM_LINK_3]">
                                   <img src="[XML_FEED_ITEM_IMAGE_3]" width="130"/><br />
                                   <strong>[XML_FEED_ITEM_TITLE_3]</strong>
                                   </a>
                               </td>
                           </tr>
                      </table>
                             ......... (until 5)
                </td>            </tr>
        </table>
    [XML_FEED_END]
 
1. Is it possible to use first rss item TITLE as email subject? If so, what tag should I use?
It is from next version, and also it's possible to use any number of feeds you want not like right now when you can only use a single feed.
Just stay tuned for upcoming version, somewhere this month.
(i think this answers both your questions).
 
Can't wait for this new features!!! :)
Specially the option to send automatically the RSS campaing each week!!! :)
 
Hi, I'm trying to get the IMAGE and is not working for me!!

I have the Feed below:

Code:
<item>
<title>Dia Mundial do Trânsito – 7 de Abril</title>
<link>
http://www.piaget.g12.br/dia-mundial-do-transito-7-de-abril/
</link>
<comments>
http://www.piaget.g12.br/dia-mundial-do-transito-7-de-abril/#comments
</comments>
<pubDate>Tue, 07 Apr 2015 19:34:47 +0000</pubDate>
<dc:creator>
<![CDATA[ Colegio Piaget ]]>
</dc:creator>
<category>
<![CDATA[ Acontece ]]>
</category>
<category>
<![CDATA[ Trânsito Consciente ]]>
</category>
<guid isPermaLink="false">http://www.piaget.g12.br/?p=915587</guid>
<description>
<![CDATA[
<table width="100%" border="0" cellspacing="0" cellpadding="10"><tr><td width="200" align="center" valign="top" bgcolor="#FAF5EC"><a href="http://www.piaget.g12.br/?post_type=post&p=915587"><img width="200" height="150" src="http://www.piaget.g12.br/wp-content/uploads/2015/04/transito_consciente2-200x150.png" class="attachment-thumbnail wp-post-image" alt="transito_consciente2" /></a></td><td></td></tr></table>
]]>
</description>
<wfw:commentRss>
http://www.piaget.g12.br/dia-mundial-do-transito-7-de-abril/feed/
</wfw:commentRss>
<slash:comments>0</slash:comments>
<image>
http://www.piaget.g12.br/wp-content/uploads/2015/04/transito_consciente2-200x150.png
</image>
</item>

and in my Newsletter I have the code below. Just the IMAGE is not showing. the rest is fine. Could you help, please?

HTML:
<!DOCTYPE html>
<html>
<head>
    <title>XML FEEDS</title>
    <meta http-equiv="content-type" content="text/html"><meta name="charset" content="utf-8">
</head>
<body>[XML_FEED_BEGIN url='http://www.piaget.g12.br/feed/' count='5']
<table>
    <tbody>
        <tr>
            <td><a href="[XML_FEED_ITEM_LINK]"><img alt="[XML_FEED_ITEM_IMAGE]" height="100" src="[XML_FEED_ITEM_IMAGE]" width="100" /></a></td>
            <td><strong>[XML_FEED_ITEM_TITLE]</strong>
            <p>[XML_FEED_ITEM_DESCRIPTION]</p>

            <p><a href="[XML_FEED_ITEM_LINK]">Leia Mais >></a><br />
            [XML_FEED_ITEM_PUBDATE] | [XML_FEED_ITEM_CATEGORY]</p>
            </td>
        </tr>
    </tbody>
</table>
[XML_FEED_END]<br />
<br />
[UNSUBSCRIBE_URL], [COMPANY_FULL_ADDRESS]</body>
</html>
 
Hi, I have done what you said but still not working!
Here it is my code from FEED:

HTML:
<item>
<title>Dia Mundial do Trânsito – 7 de Abril</title>
<link>
http://www.piaget.g12.br/dia-mundial-do-transito-7-de-abril/
</link>
<comments>
http://www.piaget.g12.br/dia-mundial-do-transito-7-de-abril/#comments
</comments>
<pubDate>Tue, 07 Apr 2015 19:34:47 +0000</pubDate>
<dc:creator>
<![CDATA[ Colegio Piaget ]]>
</dc:creator>
<category>
<![CDATA[ Acontece ]]>
</category>
<category>
<![CDATA[ Trânsito Consciente ]]>
</category>
<guid isPermaLink="false">http://www.piaget.g12.br/?p=915587</guid>
<description>
<![CDATA[
<table width="100%" border="0" cellspacing="0" cellpadding="10"><tr><td width="200" align="center" valign="top" bgcolor="#FAF5EC"><a href="http://www.piaget.g12.br/?post_type=post&p=915587"><img width="200" height="150" src="http://www.piaget.g12.br/wp-content/uploads/2015/04/transito_consciente2-200x150.png" class="attachment-thumbnail wp-post-image" alt="transito_consciente2" /></a></td><td></td></tr></table>
]]>
</description>
<wfw:commentRss>
http://www.piaget.g12.br/dia-mundial-do-transito-7-de-abril/feed/
</wfw:commentRss>
<slash:comments>0</slash:comments>
<enclosure url="http://www.piaget.g12.br/wp-content/uploads/2015/04/transito_consciente2-200x150.png" type="image/jpeg"/>

And here is my code from Newsletter Editor:

[XML_FEED_BEGIN url='[URL]http://www.piaget.g12.br/feed/[/URL]' count='5']
<table>
<tbody>
<tr>
<td><a href="[XML_FEED_ITEM_LINK]"><img alt="[XML_FEED_ITEM_IMAGE]" height="100" src="[XML_FEED_ITEM_IMAGE]" width="100" /></a></td>
<td><strong>[XML_FEED_ITEM_TITLE]</strong>
<p>[XML_FEED_ITEM_DESCRIPTION]</p>
</td>
</tr>
</tbody>
</table>
[XML_FEED_END]


Could you help on that!? Should I change anything else?
 
hi @76uk ,
I just removed the image inside Description and still not working.
have a look:
HTML:
        <item>
        <title>Hoje tem circo? Tem, sim, senhor!</title>
        <link>http://www.piaget.g12.br/hoje-tem-circo-tem-sim-senhor/</link>
        <comments>http://www.piaget.g12.br/hoje-tem-circo-tem-sim-senhor/#comments</comments>
        <pubDate>Tue, 07 Apr 2015 19:28:42 +0000</pubDate>
        <dc:creator><![CDATA[Colegio Piaget]]></dc:creator>
                <category><![CDATA[Acontece]]></category>
        <category><![CDATA[Dia do Circo]]></category>

        <guid isPermaLink="false">http://www.piaget.g12.br/?p=915582</guid>
        <description><![CDATA[No dia 27 de março, é comemorado o dia do circo, no Colégio Piaget é dia de pintar o rosto e brincar muito na aula de circo. Mas o verdadeiro motivo do circo ter essa data especial é em homenagem ao palhaço Piolim, mais conhecido como Abelardo Pinto. Ainda que hoje as brincadeiras tradicionais estejam sendo...]]></description>
        <wfw:commentRss>http://www.piaget.g12.br/hoje-tem-circo-tem-sim-senhor/feed/</wfw:commentRss>
        <slash:comments>0</slash:comments>
    <enclosure url="http://www.piaget.g12.br/wp-content/uploads/2015/04/img_0392-200x150.jpg" type="image/jpeg"/>    </item>

What code did you use inside your Newsletter Editor to work with <enclosure......>???
 
I don't use <enclosure...>
Maybe you can try to use this (same as mine):
Code:
<media:content>
http://domain.com/images/image4321.jpg
</media:content>

This means you have to remove your <enclosure...> and change <image> to <media:content>
 
Hi, have tried like you said and is not working also!!!
I don't know what to do anymore!!! Please, someone help!!! :)

When I used:
Code:
<media:content>
http://domain.com/images/image4321.jpg
</media:content>
I now see an error in my Feed page......and the Newsletters Image is not working also.
Captura de Tela 2015-04-13 às 11.23.25.png
 
Back
Top