Contextual RSS data sources


(Hopkinsd1) #1

Hello,

 

I have a Squiz website that has two context's English the default and Welsh.

 

I also have an external RSS feed that I want to display on the Squiz website. This RSS feed can be served in either English or Welsh via different URL's.

 

In Squiz I have created two RSS Data sources one that pulls in the English RSS feed and another that pulls in the Welsh RSS feed.

 

I then have an Asset Listing page that I wish to use to display the feed.  However I cant see a way to set a different RSS feed depending upon what context you are viewing the website in.

 

Is this achievable?

 

Thanks

David


(Bart Banda) #2

You would need to dynamically set the root node based on the context somehow. So you could do it via a keyword modifier perhaps, and check on the %asset_url% (assuming you are controlling contexts via URL) and then print a specific ID as a dynamic root node based on that URL. 

 

The easiest option would just be to have a standard page and depending on the context, include the right asset listing with a %globals_asset_contetns:1234% keyword. 


(Hopkinsd1) #3

Hi,

 

Thanks for the reply.  In the end I have gone with the %globals_asset_contents_raw:17254% keyword.

 

Thanks

Dave