+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Media RSS for Image Libraries - CoolIris

Media RSS for Image Libraries - CoolIris

8 posts, 0 answered
  1. Sam
    Sam avatar
    21 posts
    Registered:
    18 Aug 2010
    28 Sep 2010
    Link to this post
    Our client has a requirement that all image galleries use CoolIris, which requires a media RSS feed.  I can create the feed no issue, but can you point me in the direction of a place where I can allow them to edit the control and set up the library they want to use for it?  Also, how do thumbnails get generated?  When you upload an image does it automatically create a thumbnail?  I'm new to all of this media rss and image manipulation stuff, so my apologies or the noob question.

    Thanks again,

    Sam Ferrise
    sam.ferrise@fireflylogic.com
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    28 Sep 2010
    Link to this post
    Hello Sam,

    There is a control called IamgeGallery that you can use to show images from all or specific libraries. The thumbs are generated during upload inside Upload method of LibraryManager class. the method is static and you cannot change it, but you can generate the thumbs manually by using ImagesHelper.GenerateThumbnail method as shown in this post

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Sam
    Sam avatar
    21 posts
    Registered:
    18 Aug 2010
    29 Sep 2010
    Link to this post
    So are the thumbs generated and saved, or generated on the fly when displayed?

    Also, for adding an RSS feed for media items, is there a module built that would do this for me already?  I would like to Create an RSS feed, and select an image gallery for the source.  That's the ideal situation...what would I extend to do this, the RSS module?

    Thanks so much, your tech support is awesome!

    Sam
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    29 Sep 2010
    Link to this post
    Hi Sam,

    The thumbs are generated and saved to the database during upload. Out of the box there is not Rss provider for Images and Docuements module. You have to create a custom RssChannelProvider

    You can take a look at Implementing RSS: a Simple RSS Bare-Bones RSS Module

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Sam
    Sam avatar
    21 posts
    Registered:
    18 Aug 2010
    30 Sep 2010
    Link to this post
    Thanks so much for the example.

    However, I want to override how the RSS feed is being built (the actual XML that is).  Is there some way to do that?  I can't find a place to specify where the feed is actually built. 

    Basically, I have a class called MediaRssItem that I want to replace RssItem and have that be the basis for the RSS feed.  In effect, creating a secondary type of feed.

    I'll be happy to write this, I just need to know where to start and how to plug it in to the UI.

    I've got everything written to build the collection of these items, but the IRssProvider interface uses GetRssItems which returns an IList<RssItem> and I need my feed to look like the following:

    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
          <rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/"
          xmlns:atom="http://www.w3.org/2005/Atom">
          <channel>
              <title>Feed title</title>
              <description>Feed Description</description>
              <link>http://www.example_url.com</link>
              <item>
                   <title>Picture A</title>
                   <media:description> This one's my favorite.</media:description>
                   <link>pl_images/A.jpg</link>
                   <media:thumbnail url="http://example.com/pl_thumbs/A.jpg"/>
                   <media:content url="http://example.com/pl_images/A.jpg"/>
              </item>
              <item>
                  <title>Video B</title>
                  <link>http://example.com/pl_images/B.jpg</link>
                  <media:thumbnail url="http://example.com/pl_thumbs/B.jpg"/>
                  <media:content type="video/x-flv"
                  url="http://example.com/pl_images/B.flv"/>
              </item>
          </channel>
          </rss>
    
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    03 Oct 2010
    Link to this post
    Hi Sam,

    You can inherit from RssHttpHandler and override its GetContentData which uses StringWriter to output the rss tags and display what you see on the rss page.

    The method GetRssItems cannot be changes/overridden and it is not possible to return another type of generic list.

    Another option is implementing a custom object and method similar to GetRssItems and then use this object in GetContentData to write the xml of your rss.

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  7. Sam
    Sam avatar
    21 posts
    Registered:
    18 Aug 2010
    04 Oct 2010
    Link to this post
    Exactly what I was wondering.

    As always Ivan, you've completely answered my question.  Thank you.

    Sam
  8. Umair
    Umair avatar
    1 posts
    Registered:
    19 Aug 2013
    19 Aug 2013
    Link to this post
    Guys ,
    i have also the issue regarding CoolIris i have generated the RSS feeds and testing it but the problem is its not showing images content are showing fine but the image is not showing i am pasting the link of my RSS feeds along with the online tool for verification if anyone can help me out please because i have follow all the steps to create RSS feeds but still not getting the result.

    below is my RSS feeds
    http://www.elaph.com/web1/webform/ImageShareRssFeedContributor.aspx?id=237

    below is the url of online tool from which you can verify.
    http://www.cooliris.com/yoursite/express/builder/
    its showing the number of item correct to me but not the image thumbnails and Image which i clicked on it.

    Thanks in Advance to help

Register for webinar
8 posts, 0 answered