Jump to:

1835 Posts in 1139 Topics by 554 members

Blog Module

SilverStripe Forums » Blog Module » Podcast?

Discuss the Blog Module.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1591 Views
  • mango
    Avatar
    Community Member
    26 Posts

    Podcast? Link to this post

    Hi I'm new to SS, I've got a couple of new questions regarding using the blog module as a podcast:

    1. How do I add an mp3 to an entry? and would the mp3's be showing correctly in the RSS feeds?

    2. How do I change the url away from mysite.com/blog/ ? I unzipped to mysite.com/podcast, did the /db/build?flush=1, but my podcast url is still mysite.com/blog/

    3. I will be adding a blog to my site in the future as well, will I be able to use this blog module multiple times? i.e. one instance at mysite.com/podcast/ and one at mysite.com/blog/ ?

    Thanks for your help.

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Podcast? Link to this post

    1) Yes you can add an MP3 to a page - see tutorial 2 for adding fields to pages. If you want to add them to blog entries you have to 'decorate' the standard blog module (unless you want to edit the actual module files).

    You would want to add this to your mysite/_config file - this tells SS that you have a custom code that you want to use ontop of BlogEntry

    DataObject::add_extension('BlogEntry', 'MP3BlogEntry');

    Then you would what to create a MP3BlogEntry.php file in mysite/code/ with the information you want to add to the BlogEntry. See http://www.pastie.org/439357 for my example code.

    2) You can edit the URL on the 'Blog' Page in the cms - look under the 'Content' -> 'Meta Data' tab

    3) Yes you can create as many instances of the BlogHolder / BlogEntries as you want

  • mango
    Avatar
    Community Member
    26 Posts

    Re: Podcast? Link to this post

    Thanks for that! Now I understand a little bit more about how SS works. One more question:

    It looks like it wasn't necessary for me to unzip to the [SS base install]/podcast directory, how do I change it back to [SS base install]/blog? Can I simply rename it?

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Podcast? Link to this post

    should just be able to rename it.

  • mango
    Avatar
    Community Member
    26 Posts

    Re: Podcast? Link to this post

    Now, how do I get the mp3 download link appear in the rss feed?

    1591 Views
Page: 1
Go to Top

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

Comments on this website? Please give feedback.