ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Magpie RSS Date

September 14, 2010 3:39pm

Subscribe [3]
  • #1 / Sep 14, 2010 3:39pm

    This question may be related to a resolved thread.

    I have a related problem. I’m bringing in this feed

    http://www.fifa.com/media/rss.xml

    into

    http://www.hispanicallyspeakingnews.com/futbol-blog

    via Magpie.

    I can see the date on the Feed page. I validated it using

    http://validator.w3.org/feed/check.cgi?url=http://www.fifa.com/rss/index.xml

    The template code is

    {exp:magpie url="http://www.fifa.com/rss/index.xml" limit="15" refresh="720"}
    {magpie:items}
    <div class="article">
    <h3><a href="http://{link}" title="{title}">{title}</a></h3>
    <p>{date format="%F %j, %Y"} <span>|</span> by <a href="http://www.fifa.com/newscentre/news/index.html" title="FIFA.com" target="new" rel="noopener">FIFA.com</a><br />
    {summary} <a href="http://{link}" title="{title}" target="new" rel="noopener">continue reading »</a><br />
    </div><br />
    {/magpie:items}<br />
    {/exp:magpie}

    I’ve tried both, date by itself, and date with format as seen above. Neither works.

  • #2 / Sep 14, 2010 3:49pm

    In addition,

    What variable tag would I use to bring in the “Media Files” images per each post from http://www.fifa.com/media/rss.xml ?

    Martin

  • #3 / Sep 14, 2010 4:56pm

    carvingCode

    380 posts

    This problem has been reported previously and was said to be a Magpie problem.

  • #4 / Sep 15, 2010 4:49am

    John Henry Donovan

    12339 posts

    Lunchbox Collective,

    I am just pinging devs on the date issue. I can replicate what you are experiencing so thank you for your patience.

  • #5 / Sep 17, 2010 3:41am

    John Henry Donovan

    12339 posts

    Lunchbox Collective,

    We created a bug report and has since been confirmed. It was a documentation bug in fact.

    Try “pubdate” instead of “date”. In my local test this works for me.

    Sorry for inconvenience

  • #6 / Sep 17, 2010 4:17pm

    John,

    Thank you. It’s now publishing the date with {pubdate}, as seen on feed entries at: http://www.hispanicallyspeakingnews.com/futbol-blog

    I still can’t get the formatting to work, though. Is this a template limitation?

    I used both, and it wasn’t displaying anything.

    {pubdate format="%F %j, %Y"}

    or

    {magpie:pubdate format="%F %j, %Y"}

    Martin

  • #7 / Sep 19, 2010 2:17pm

    Greg Salt

    3988 posts

    Hi Martin,

    There is no format parameter available for dates, the format is taken from the original feed. The images contained in the feed are in an enclosure tag that the Magpie plugin does not support.

    Cheers

    Greg

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases