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.

Question about Magpie

June 11, 2010 12:46am

Subscribe [6]
  • #1 / Jun 11, 2010 12:46am

    scoleman

    2 posts

    Hello,

    I’m trying to display a list of external RSS feeds on my site, and I want each of the RSS links to open up on their own distinct page that then has a summary from the RSS. On this summary page, I would like a link back to the original article, similar to what’s done on http://www.topix.com. I have 2 templates, “index” for all the RSS entries and then “fullpage” for displaying the individual RSS entries. I’ve tried using magpie, but the point where I get stuck at is when I try to make the “fullpage” template show only the selected RSS summary and title. Do you know how to work around this?

    Also, when I am trying to display the date the article was published, I get nothing. I am able to display the RSS title, link, and summary but for some reason the date won’t show. I tried {date} and {pubDate}. Can you help me with these issues?

    Thanks in advance.

  • #2 / Jun 11, 2010 3:05am

    John Henry Donovan

    12339 posts

    scoleman,

    but the point where I get stuck at is when I try to make the “fullpage” template show only the selected RSS summary and title.

    What do you have so far on the the fullpage template?

    but for some reason the date won’t show. I tried {date} and {pubDate}.

    Try some formatting for the date like so

    {date format="%F %d %Y"}
  • #3 / Jun 12, 2010 6:25pm

    scoleman

    2 posts

    ok so for the template with all the RSS entries this is what I have:

    {exp:magpie url="RSS Feed Link" limit="10" refresh="720" }
    
    {items}
       <a href="http://{link}%22href"> {title}</a> </span> 
    Posted: {magpie:date format="%F %d %Y"}  by {author_name} from RSS Feed 
    
    {summary} <a href ="{link}"> Click here for the full article</a>
     
    {/items}
    
    {/exp:magpie}

    Only the {title}, {summary}, and {link} seem to work. The {author_name} and {date} show nothing. And I’ve tried {pubDate} and that doesn’t work either. And when I hit any of the RSS links on the template, the second template only displays the first entry, regardless of which one I click. And I thought that I could do a {title_permalink} with the entries and the {title} so that it could display the article name in the address, similar to a weblog list with its individual entries, but I can’t figure where exactly to put it and how to write it. Can you help?

  • #4 / Jun 13, 2010 12:57pm

    Greg Salt

    3988 posts

    Hi scoleman,

    If you look at the documentation within the Plugin Manager at Admin > Utilities > Plugin Manager > Magpie in the Pair Variables section you will see that the variables available may differ depending upon the type of feed that you are accessing. The title, summary and link variables would normally be available for all feed types. For other fields they may not actually have been made available in the specific feed you are using but the author information may be author_name if the feed is an ATOM one.

    Cheers

    Greg

  • #5 / Aug 09, 2010 3:50pm

    shinka

    147 posts

    I also cannot get the date with formatting to display. I’ve tried using {date format="%M %j, %Y"} as well as {magpie:date format="%M %j, %Y"} but neither work. Using {date} without formatting works.

  • #6 / Aug 09, 2010 11:13pm

    Brandon Jones

    5500 posts

    scoleman, let us know if that answers your question.

    shinka, are you sure you are dealing with an RSS 2.0 feed that validates?

  • #7 / Aug 10, 2010 5:55pm

    shinka

    147 posts

    shinka, are you sure you are dealing with an RSS 2.0 feed that validates?

    You are correct, validation was the issue, thanks.

  • #8 / Aug 11, 2010 3:36am

    John Henry Donovan

    12339 posts

    Glad you are up and running shinka. Closing this thread out due to lack of response. Feel free to start a new thread if you have any more questions.

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

ExpressionEngine News!

#eecms, #events, #releases