Does anyway know if there is a way of gathering multiple attributes about the current asset in an asset listing, in one line of code.?
For example (and I’m not saying these keywords actually exist lol) - %asset^as_asset:asset_name,asset_url_path,asset_type_code%
I see that you can do it for child and parent assets (the keyword %asset_children% returns an array, for example) but not for the actual asset you’re working on. It always ends up having to write each individual attribute as a single line and keyword, for example:
The reason I ask is because I think it’s causing a performance issue with my asset listing - the time printBody takes is much, much longer than anything else and is contributing to something like 70-80% of the page’s load time, resulting in an overall nearly 7seconds to load the page!
I’m using SSJS to decide what ends up being actually printed to the user in the browser and I’m having to rely on around five keyword replacements. I’m thinking, if I can reduce all these individual keyword replacements down to just one I might save significant time, which would show through the printBody in performance mode.