Inserting assets into HTML


(David Avery) #1

Hi all,

 

I've currently got some JQuery accordions on my website and I'm wondering if there was any way I could place the page contents of another asset straight into the accordion box through some sort of keyword. It would be much easier than copy/pasting all the content and would also save on tons of space.

 

Many thanks,

 

David


(Bart Banda) #2

You can print the contents of any asset using the asset contents keyword in a global context, for example:

 

%globals_asset_contents_raw:1234%

 

Where 1234 is the id of the asset which contents you want to print.


(David Avery) #3

Cheers Bart, that's exactly what I needed.

 

Many thanks.