We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22827
    • 129 Posts
    Hi splittingred,

    I have adapted the getFeed snippet with a couple of additions for a project I am in the middle of.

    This adds a couple of parameters:

    1) imageField - this tells the snippet that it should find the first image src within a specific field of the rss feed and adds a new element to the item array "image" containing the source

    For RSS feeds with an image embedded in the content, this allows me to grab the image and put it exactly where I want in the output, put into a [[+image]] placeholder.

    2) toPlaceholders - same as with getResources, this takes a string parameter, then outputs each chunk to a placeholder called $toPlaceholders.$idx

    I have attached it here, if there is any demand for either of these, then you may want to add them into your addon.

    It is a bit hacky perhaps!
      • 49685
      • 1 Posts
      Is there any examples how to use this?

      THanks

      UPDATE

      I allready find the way!!

      Perfect [ed. note: [email protected] last edited this post 9 years, 3 months ago.]