Passing Variables to Nested Content - Possible bug


(Keith Brown) #1

Hi Folks,

 

Come across this so I thought I'd post here as a double check that I'm not doing daft before filing a bug.

 

Ok situation...  related asset (rss feed) in metadata.  Asset Listing setup to take a get variable (rssid) as a replacement root node (this works fine) as we want to use different RSS feeds.

 

I want to nest the asset listing in a design BUT as you can't pass in variable to a nested area in the design... bit of a work around is to nest a different (and empty) 'stubb' standard page asset then apply a paint layout to that.  Again this works... I can print out a content div that has 'hello world' from the default format of the paint layout - in fact I can even print out the global keyword i want in the next step - %globals_asset_metadata_rssfeed_asset_assetid%.  I add a nested div and include the Asset Listing and pass in the variable (rssid) and value (%globals_asset_metadata_rssfeed_asset_assetid).  Fails.

 

For debugging I have a nested content area in the main body of a standard page and repeated the process (nest standard page asset; apply paintlayout; nest asseet listing; pass in variable) and this works fine.

 

So is there something I'm missing that this approach works when done within 'the body' but doesn't work when used in a design?

 

TIA

 

K


(Evan Wills) #2

try using the Get variable rssid in the Dynamic Parameters - "Replacement Root node for the listing (must be a child of the static root node)" on the details screen of your asset listing

http://manuals.matrix.squizsuite.net/asset-listing/chapters/details-screen#Dynamic-Parameters