doorstep-large.jpg

News delivered to your doorstep

By Liam Coltman posted on 10 Sep 2010

What is it?

RSS feeds allow users to stay up to date with what's happening on your website using a variety of third party tools to read the RSS feed.

Functionality: Site specific

Assets used: Asset listing, RSS feed, Design

The first part of this tutorial assumes that you have either an SSV of MySource Matrix or are running v3.28 or later which includes the RSS asset. The second part will outline how you can create an RSS feed on version of MySource Matrix that does not include the RSS asset.

  1. Create a new asset listing
  2. Select the asset types you would like to list, in this example I have selected News Items (insert image) and set the status to live
    Settings for the asset listing
  3. Set the root node to the appropriate area of your website, I have
    chosen to use the site asset so that all news items will be listed
  4. Create a new RSS feed asset and give it an appropriate name
  5. Acquire the locks and change and select the new asset listing you’ve just created, change the RSS Format to RSS 2.0
  6. Change to the build screen and acquire the locks
  7. Set the title of the RSS feed in the channel info area
  8. Set the link to the site asset for your website (or somewhere else
    appropriate)
  9. Enter an appropriate description for the RSS feed
    Setting the channel info
  10. If you want to fill in the rest of the fields you can but its not mandatory
  11. Select the asset you'll be using under Add Keyword and commit it
    Setting the RSS keywords
  12. Choose the appropriate attributes for title, link and description
    repeating the process for each new item
  13. You can now preview and use your new RSS Feed!
    Previewing the RSS feed
And for the older versions of MySource Matrix:
  1. Create a new asset listing and give it an appropriate name and the file extension .xml
    Naming the asset listing for xml
  2. Select the asset types you would like to list, in this example I have selected News Items and set the status to live
    Settings for the asset listing
  3. Set the root node to the appropriate area of your website, I have chosen to use the site asset so that all news items will be listed
  4. Change the screen to display formats and edit the default format
  5. Set the presentation style to Raw HTML and the Content Type to Raw HTML and save the changes
    Changing the div to Raw HTML
  6. Use something like the following code to display your assets
     <item>
     <title>News delivered to your doorstep</title>
     <description>

    With users becoming more and more demanding on their news and website updates RSS provides the perfect option to keep readers up to date with what is happening on your site.


    </description>
     <link>http://matrixusers.com/tutorials/news-delivered-to-your-doorstep</link>
    </item>
    then save the changes
    Code for the default type
  7. Change the page contents for the asset listing to be Raw HTML and Content Type to Raw HTML
  8. Add in the following code for the channel but cater it to your site:
    <channel>
      <title>MySource Users</title>
      <description>Stay up to date with what is happening on mysourceusers.com</description>
      <link>http://www.mysourceusers.com</link>
     
    </channel>
  9. Create a new design file and give it an appropriate name
  10. Edit the parse file and insert the following code:
    <?xml version="1.0"?>
    <rss version="2.0">
    <MySource_AREA id_name="body" design_area="body"/>
    </rss>
Parse file code
  1. Right click on your asset listing and then select settings
  2. Change the front end design to the new parse file
  3. If you preview the asset listing you should now have an RSS feed

Comments


There are currently no comments for this article. Why not be the first to post a comment?

Build your own search

By Ladoo posted on 20 Oct 2011

You can create your own personal Search Page to assist with locating and editing the content you look after. This can be especially helpful in larger systems where quick search becomes less accurate.

Output content to a file

By Ladoo posted on 17 Nov 2011

As well as HTML and text, Matrix can be configured to directly output XML, iCal, RTF and even Word and Excel documents, so that users can directly download and work with these files.

Dynamic Asset Listings

By Liam Coltman posted on 14 Aug 2010

Learn how to make you asset listings dynamic so they can be reused across multiple pages on your site

Comment all you want

By Liam Coltman posted on 08 Sep 2011

Using a combination of an Asset Builder and an Asset Listing in Mysource Matrix can allow you to create a comment area in your website and can be used for blogs.

Trigger happy images

By Liam Coltman posted on 23 Aug 2010

Triggers are a very powerful feature in MySource Matrix. Learn how to set up a trigger to create image varieties

Pretty as a picture Image Gallery

By Liam Coltman posted on 13 Nov 2010

Image Galleries can help to add a bit of colour to your website. With a little bit of tinkering you can make an image gallery that will rival the Louvre

Search

By Ladoo posted on 23 Feb 2012

Most content management systems only offer basic search functionality, and Matrix is no exception.

Matrix PHP API - Creating Standard Page Assets

By Anton Babushkin posted on 28 Feb 2011

Using the Matrix PHP API can allow you to do more than you previously would have thought possible. This article will teach you how to create Standard Page assets as well as give you some insight into when you could utilize the PHP API in the real world.

Release notes for Matrix 1.2

By Anton Babushkin posted on 16 Jul 2013

You can create your own personal Search Page to assist with locating and editing the content you look after. This can be especially helpful in larger systems where quick search becomes less accurate.

Paint Layouts

By Liam Coltman posted on 06 Mar 2010

The best way to think of a Paint Layout is a Design File for your page content.