Asset listing displaying name for root node

Just wondering if anyone has done, or knows how to display the asset name of the assetid being used as the replacement root node?


For example, I have an asset listing page that operates similarily to the Site Map asset, however, it retrieves replacement root nodes as a GET parameter. On the Page Contents of the asset listing I want to display %asset_name% of the current root node being used.



Aleks



[attachment=186:attachment]
site_map_example.jpg (35.5 KB)

You could try %root_nodes% or %asset_lineage% (I haven't tried these, but I suspect they will be what you're after) in your type format bodycopy. With the latter, you may need to suppress some of the output using JavaScript and/or CSS.

I'm using %root_nodes% to print out that asset id. %asset_lineage% is only available in Type Formats and won't print anything for me.

Solved this by using xmlhttprequest to retrieve the title of the page