Results 1 to 5 of 5

Thread: Format RSS feeds

  1. #1
    New user
    Join Date
    07-09-09.
    Posts
    15

    Default Format RSS feeds

    Here I go again with my ramblings

    I have a section on my website for News & Events.
    I have a News section and an Events section.

    The News & Events is the RSS reader module taking the feeds of both the News & the Events.

    My small problem is the format,
    The News is fine,
    I have it formated like such:
    title
    date
    teaser

    but the problem is the Events format has the title like:
    Date Time Title
    teaser

    The title is written this way in the XML file, is there anyway I can change that?

  2. #2
    User
    Join Date
    06-29-09.
    Posts
    271

    Default Re: Format RSS feeds

    Assuming you have fixed with dates you could use the php function substr in the template to extract the date. Otherwise extract using regular expressions. If you cannot process the data, then you must make the xml appear in another format (if that is allowed)

  3. #3
    New user
    Join Date
    07-09-09.
    Posts
    15

    Default Re: Format RSS feeds

    Hi Vera,

    Thanks for your reply,

    I was looking at cutting off the dates with regular expressions so I will go back to that again.

    Ideally I would like to change the format of the xml file but I can't find where this is created.

    Thanks again

  4. #4
    Experienced user
    Join Date
    06-20-09.
    Posts
    1,311

    Default Re: Format RSS feeds

    I don't have the rss module installed, but I imagine if you go to Layout :: Templates :: New Template (left navigation) and browse all the templates there you'll see something with rss or xml in it. Create template and edit to experiment (if it goes wrong you just delete the template, create again and edit again).

  5. #5
    New user
    Join Date
    07-09-09.
    Posts
    15

    Default Re: Format RSS feeds

    Hey everyone,

    I fixed it by going to calendar.php and commenting out the part where it adds the date to the title. Kicking myself for not seeing it sooner!

    Thanks again for the replies

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •