I need to get the data from an asset into XML based on it ID.
Does anyone have suggestions on the best way to do this?
I need to be able to have a bit of javascript read the xml for certain asset types, and the insert some stuff into a page based on that information.
Use a URL like: www.domain.com/?a=1234&SQ_DESIGN_NAME=xml&SQ_PAINT_LAYOUT_NAME=xml
Which switches to the XML design and paint layout assigned to asset 1234.
I have some sample code that you can refer to
Design
Paint Layout (Raw HTML content type)
%asset_assetid%
%asset_name%
%asset_type%
Add user defined design code in the settings screen, add user defined layout in the lookup settings screen. You should be able to use the query string in Avi's post to retrieve XML info.