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.

Help with conditionals & magpie plugin

November 15, 2010 11:57am

Subscribe [4]
  • #1 / Nov 15, 2010 11:57am

    Linda A

    666 posts

    Its been a while since I did anything with conditionals, so I may very well be making mistakes. Should this code be working?

    {exp:magpie url="http://asoiaf.westeros.org/index.php/rss/forums/3-a-song-of-ice-and-fire-forum-hbos-game-of-thrones-open-discussion/" limit="10" refresh="1"}
    {items}
    {if magpie:title == title}
    <a href="http://{magpie:link}">{magpie:title}</a>
    {/if}
    {/items}
    {/exp:magpie}

    I am trying to pull in a link to the RSS feed item where the title matches the post that I am trying to include the link within.

  • #2 / Nov 16, 2010 3:28am

    John Henry Donovan

    12339 posts

    Linda,

    Generally from testing and searching through the thread conditionals against magpie variables don’t work.

    Can you explain a bit more about what you are trying to do?
    What is wrapping the Magpie code?

    have you seen the FeedGrab plugin? which actually creates entries from your feeds

  • #3 / Nov 16, 2010 6:45am

    Linda A

    666 posts

    I have one weblog where the RSS is grabbed by my forum (not an EE forum) and each post is reposted in the forum. I want to be able to point readers of my weblog straight to the forum repost for discussion, so I had hoped to be able to grab the link from the RSS that the forum in turn puts out to include a link back within the post.

    I was able to use magpie to get all the links currently in the forum RSS included with the post, but then I had hoped to be able to match on title to get just the one link per post.

    So, hrm, guess magpie isn’t the solution then. Thanks for clearing that up. 😊

  • #4 / Nov 16, 2010 10:29am

    Sue Crocker

    26054 posts

    If the other forum database is in the same db container as your EE site, you might be able to use the query module to pull in that info. But this does sound more like a HowTo or CodeShare Corner type of question.

  • #5 / Nov 16, 2010 10:42am

    Linda A

    666 posts

    Yes, I had started the topic there first, asking for general help. 😊 However, then I had the idea to use magpie and thought it would work with conditionals, and I wanted to rule out that I wasn’t running into a bug or a user error with the conditional not working, hence the post here.

    But, since magpie can’t work like that, I am probably out of luck. Its not the same database, unfortunately, so probably not doable at all. In any case, can close this one and I’ll see if I can get any other suggestions in the other forums.

  • #6 / Nov 16, 2010 4:16pm

    Ingmar

    29245 posts

    Sorry we don’t have any better news for now. Post again as needed, please.

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

ExpressionEngine News!

#eecms, #events, #releases