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

Forums / Developing with Sitefinity / RSS feed questions

RSS feed questions

10 posts, 0 answered
  1. Darren
    Darren avatar
    72 posts
    Registered:
    19 Mar 2008
    27 Jun 2008
    Link to this post
    Hi,
    I have a few quick questions about the RSS module.

    Is there any way to specify a sort order of the generated RSS feed? Effectively I have a Flash module using an RSS feed from SiteFinity to display the last 4 published news articles but what I'm finding is the 4 articles being added to the RSS feed are the last 4 created articles.
    I had a look at the stored procedures used by the RSS module and various classes but couldn't see any obvious way to control the query being run to retrieve the RSS articles.

    I could just set the RSS feed to present all articles and do the sorting in Flash but it makes more sense to do this at the earliest point possible.


    Also, does the RSS module filter out characters from article titles which can't be used in a URL?
    I notice generated news article URL's replace various characters with underscores so for instance a news article with ? or ... in the title would replace these with single underscores to stop problems occurring.
    Is this also being done when creating article titles in the RSS feed so they can be used directly in the article link URL?
    A client is having problems with article titles in their RSS feed with '...' characters having them replaced by a single '.'
    Are you aware of any kind of character substitution in the RSS feed generation module which could be causing this?

    Thanks
    Darren
  2. Vassil Daskalov
    Vassil Daskalov avatar
    261 posts
    Registered:
    18 May 2013
    27 Jun 2008
    Link to this post
    Hello Darren,

    It seems that there is no option to sort the news rss feed through publication date. However, this feature seems logical and we will add it in one of our future releases. So, thank you for pointing our attention to this issue. Your Telerik account has been updated.

    The only modifications which are done for the RSS feeds information is by the dynamic link parser. Its function is to modify all relative link, which does not start with the protocol and domain used, to absolute one. Thus, if you have link similar to: /myApp/link.aspx it would be modified to http://www.domain.com/myApp/link.aspx.

    The other thing which might be causing the problems of your client can be the item structure option in the feed settings. This is the option where you set what part of the content will be put into the feed - all of the article's content, its title and summary or its title only.

    Please check if this might be causing the issues and let us know for any problems

    Best wishes,
    Vassil Daskalov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Darren
    Darren avatar
    72 posts
    Registered:
    19 Mar 2008
    01 Jul 2008
    Link to this post
    Could you tell me precisely what the rule is for presenting news items through the rss feeds?
    My understanding is that it presents news items by creation date rather than published date.
    How does modifications affect this? Are articles presented by creation date or modification date?
    Since I can't control the sort order I'm documenting it to ensure clients are clear what to expect.

    As for the ... in rss feed titles being replaced with a single dot, I've found that changing the item structure does not affect the title generated.

    For example, the following block from the rss file should contain the title 'nd an Oscar goes to...' but the 3 trailing dots have been replaced with a single dot.


    <item>
          <title>And an Oscar goes to.</title>
          <description>And an Oscar goes to.</description>
          <link>http://vmweb/Yell/Themove/News/08-07-01/and_an_oscar_goes_to_.aspx</link>
          <comments>http://vmweb/Yell/Themove/News/08-07-01/and_an_oscar_goes_to_.aspx</comments>
          <guid isPermaLink="false">389f4069-939a-46bd-8b08-3500d7a274eb</guid>
          <pubDate>Tue, 01 Jul 2008 15:40:19 GMT</pubDate>
        </item>


  4. Vassil Daskalov
    Vassil Daskalov avatar
    261 posts
    Registered:
    18 May 2013
    04 Jul 2008
    Link to this post
    Hi Darren,

    Unfortunately, the rule for the sorting of the RSS items is by creating date and for the time being there is no way to change this behavior.

    As to the triple dot problem, I cannot reproduce it on a local Sitefinity project, nor can I on the demo.sitefinity.com site. So is it possible that this problem is connected somehow to some custom code. Perhaps there is something more I am missing, so if you are able to reproduce the problem on the demo site and tell me the steps you take, it would be very helpful.

    Thanks in advance.

    Sincerely yours,
    Vassil Daskalov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. Darren
    Darren avatar
    72 posts
    Registered:
    19 Mar 2008
    09 Jul 2008
    Link to this post
    Create a news articles with the following title

    And an Oscar goes to…

    Publish it and create an RSS news feed which includes this news article and then open up the .rss file.
    The title is shown as the following.

    And an Oscar goes to.

    In turn in the URL for this news article the . becomes an _ so presumably all of this is a result of some interaction of the URL parser.
  6. Vassil Daskalov
    Vassil Daskalov avatar
    261 posts
    Registered:
    18 May 2013
    14 Jul 2008
    Link to this post
    Hi Darren,

    Now I got what the problem is. It is caused due to the fact that you are using the Unicode symbol for triple dots which is replaced by a symbol dot by the RSS module. My recommendation is to use three symbols, each for every dot (...), instead of: … . Meanwhile, we will try to find a fix for this issue. Thanks for drawing our attention to it.

    Your Telerik account has been updated.

    Regards,
    Vassil Daskalov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  7. Michał
    Michał avatar
    1 posts
    Registered:
    16 Apr 2008
    14 Jan 2009
    Link to this post
    Hi,

    I've got similar problem with RSS feeds. I've got unicode characters in blog post titles (polish accent characters - like: ą ę ń ł, etc). In RSS these characters are converted to non accent characters (ASCII) making RSS links broken.

    For example - letter 'ł':

    Post title: Materiały promocyjne
    Web link(valid): http://.../pl/News/09-01-11/Materia%c5%82y_promocyjne.aspx
    RSS link(invalid): http://.../pl/News/09-01-11/Materialy_promocyjne.aspx

    Is there any workaround?

    Regards,
    Michał
  8. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    14 Jan 2009
    Link to this post
    Hi Michał,

    We changed the Rss feeds for Sitefinity 3.6 (going to be released soon) to use Utf8 charset. Unfortunately this could not be changed in the current version.

    Sincerely yours,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  9. Alvaro
    Alvaro avatar
    5 posts
    Registered:
    13 Jul 2009
    18 Sep 2009
    Link to this post
    Hi,

    How can I configurate my Sitefinity 3.6 to use Utf-8?
    I use a DropDownList in my module's field and I can't use character accent, like this á, Á, ó,...etc.

    Thanks, Álvaro.
  10. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    22 Sep 2009
    Link to this post
    Hi Alvaro,

    In which section? If you have enabled the localization, the language names should be properly displayed. You can try with <globalization> element in the web.config otherwise.

    All the best,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Register for webinar
10 posts, 0 answered