%asset_contents% keyword not working in metadata


(Kieran@parracity) #1

Hi guys,


Is there a reason asset_contents keyword doesn't work in metadata field of a standard page asset? It just doesn't output anything. asset_name works fine.

Wanted a keyword that will give the the contents of a standard page AND calendar event, no matter what one of those it is applied to.

Yes, the page has contents.



Running v4.10.1



Thanks in advance


(Kieran@parracity) #2

Nevermind. Apparently its nto allowed as metadata keyword.


Thanks


(Ashish Karelia) #3

Have you tried using %globals_asset_contents% OR %globals_asset_contents:XXX% style keywords?


(Kieran@parracity) #4

[quote]
Have you tried using %globals_asset_contents% OR %globals_asset_contents:XXX% style keywords?

[/quote]

Hi Ashish,

Yes. I have tried.



They don't work. I could make a standard page asset, which contained raw html and those keywords with the metadata code and them embed that into the actual design before the </head> tag, but that's too much work for the little change they wanted.



asset_contents isnt a keyword for metadata.