Login | Forgot password | Register

X

What is OpenID?

OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.

With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.

For more information visit the official OpenID site.

Jump to:

17478 Posts in 4473 Topics by 1972 members

Archive

SilverStripe Forums » Archive » Renaming the RSS Feed in the Blog Module

Our old forums are still available as a read-only archive.

Page: 1
Go to End
Author Topic: Renaming the RSS Feed in the Blog Module 888 Views
  • sethstacey
    avatar
    Community Member
    7 posts

    Renaming the RSS Feed in the Blog Module Link to this post

    I recently installed the blog module for Silverstripe. And, it works really well.

    One question though: when I go to the RSS feed for it, the title of the feed is "mysite blog"

    That seems like something I can change somewhere, but I can't find it anywhere. Does anyone know?

    Thanks!
    Seth

  • Willr
    avatar
    Moderator
    2746 posts

    Re: Renaming the RSS Feed in the Blog Module Link to this post

    Theres 2places where you might need to edit it..

    1) You need to open up blog/code/BlogHolder.php and at about line 256 in that there is something like

    RSSFeed::linkToFeed($this->Link() . "rss", _t('BlogHolder.RSSFEED',"RSS feed of this blog"));

    You can set the text "RSS Feed for the blog" to whatever you want

    2) In the rss() method in BlogHolder.php (same file as before) at about line 289 is this

    $rss = new RSSFeed($children, $this->Link(), $project . " blog", "", "Title", "ParsedContent");

    The bit in bold is the title you are talking about. You can just change that to whatever you want!

  • sethstacey
    avatar
    Community Member
    7 posts

    Re: Renaming the RSS Feed in the Blog Module Link to this post

    Thanks a lot! That worked out perfectly.

    Seth

  • Hamish
    avatar
    Community Member
    609 posts

    Re: Renaming the RSS Feed in the Blog Module Link to this post

    Note that $project comes from your _config.php, so change the project name from 'mysite' there and it will flow through to the blog rss feed.

    However, I think the RSS feed title should be a property of BlogHolder and be configurable from the CMS. There is no reason you can't have multiple blogs on one site and you wouldn't want them to have the same title.

    -- ok, so doing that breaks the manifest builder... thats really annoying, everything else seems to work.

  • Sean
    avatar
    Core Development Team
    585 posts

    Re: Renaming the RSS Feed in the Blog Module Link to this post

    Hamish: That sounds like a perfectly acceptable enhancement. A field like "Name of blog" which is editable in the CMS on a per-BlogHolder basis sounds like the way to go.

    I've added a ticket for this in our open source tracker: http://open.silverstripe.com/ticket/2777

    Thanks!

    Sean

    888 Views
Page: 1
Go to Top

Currently Online: cardinale, ikhwanb, spierala, RichardWGP

Welcome to our latest member: RichardWGP

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.