How to print the ID / Name of a content container

Matrix Version:

5.4.1

Hi,

Is it possible to print the name or asset ID of a content container?

Is there a keyword for this?

Help appreciated as always.

Karl

Hi
Where are you wanting to do it? eg within the content container, in a page that is using the container, or somewhere else externally like a listing etc
Thanks
Peter

Using content container templates - wanting to print the name or id of the content container from the paint layout that sits on the content container and formats it for the front end.

I need to set a unique css id# on each content container - and the content container id# would be ideal to do this.

If there was a keyword to print the id number of the content container the keyword is in - that might help.

I’ve not seen it before just wondered if anyone else had managed to grab this information in any way.

Thanks

If you use %asset_assetid% within the Type Format of the Paint Layout that is applied to the Content Template, that should reference the Content Container’s Asset ID.

Excellent Bart - works like a charm.
Thanks
Karl

1 Like