Contextual RSS data sources

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

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. 

Hi,

 

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

 

Thanks

Dave