RSS feed from Search Page results


(Anewport) #1

Is it possible to generate an RSS feed from a Search Page Asset? Found a post from 2009 which indicated that it was but I can't seem to get it working - http://forums.squizsuite.net/index.php?showtopic=6751

 

The Search Page itself is working correctly and returning results as expected.

 

The RSS Feed asset does not show any data when I select the Search Page asset as the Listing Engine. I've tried adding query strings to the URL and Stored Search options but neither produces a working feed. So I tried the Search Page with a Paint Layout applied with the XML code to manually build an RSS feed but this still doesn't work. MS Outlook even says that the supplied URL is not a valid link so it doesn't add it to my RSS Feeds.

 

I thought (based on the link above) that perhaps the headers aren't sending correctly so I added that info to the Design. Not sure what is wrong but I've got a feeling is it the header information sent to the browser although it shows as "Content-Type: application/rss+xml" in the Chrome Dev Tools. My only indication for this is when viewing the page all I see is the code printed out but no browser formatting like you would expect from Chrome or IE (which adds some colouring and row formatting).

  Entire Design code applied to the search page:

  <MySource_PRINT id_name="__global__" var="content_type" content_type="application/rss+xml" />
  <?xml version="1.0" encoding="UTF-8"?>
  <MySource_AREA id_name="page_body" design_area="body" />

(Nic Hubbard) #2

I would not use the RSS Feed asset at all. Just use an asset listing to build the feed manually, it will be a lot easier that way.


(Anewport) #3

An Asset Listing page won't be able to provide the feeds that we need due to grouping and it producing multiple groups depending on the metadata tagging. A Search Page can provide this flexibility but a browser or feed reader doesn't read the page as an RSS feed.


(Nic Hubbard) #4

A Search Page can provide this flexibility but a browser or feed reader doesn't read the page as an RSS feed.

 

Even applying a design with the Design tags that you used above? Can you show me the page?


(Anewport) #5

Here is a link to a test page http://client3.matrix01.act.gov.au/rss/subscribe?category=0009

 

Public Read permission and Live status has applied to the searchable assets, search page, paint layout and design.

 

Thanks for checking


(Nic Hubbard) #6

Here is a link to a test page http://client3.matrix01.act.gov.au/rss/subscribe?category=0009

 

Public Read permission and Live status has applied to the searchable assets, search page, paint layout and design.

 

Thanks for checking

 

So, what is going wrong on that page? Firefox seems to think it is an RSS feed.


(Anewport) #7

So, what is going wrong on that page? Firefox seems to think it is an RSS feed.

Well this is awkward haha. That exact page was not recognised as an RSS feed from Chrome, IE or Outlook a day ago, but today it is showing up fine.

 

So yea...case closed. I guess everything was set up fine and it was just me  :blink:

 

Thanks again and sorry for the time wasting.


(Nic Hubbard) #8

No problem. Sounds like it could have been a caching issue. :)


(Anewport) #9

That sounds less embarrassing so I'll go with that lol