Using asset_summary keyword in Asset Listing Type Format


(Tim Davison) #1

This feature may simply not be available - if that's the case fine, but it seems to me like it should be do-able.

 

When editing a normal page, we sometimes link to documents and tick the 'show asset summary'.  Resultant WYSIWYG code will look like this:

%asset_summary_<id-of-asset-you-are-linking-to>%

When the page is rendered this is extrapolated to include file type, file size, etc - whatever has been configured in Global Preferences > File Summary Format.

 

No problems.

 

Jump to an asset listing, I'm listing PDF Files, and tried to use asset_summary - no dice.  Issue being the asset_summary keyword needs the asset id as part of the keyword itself, but I can only get the asset id of the current listed item via keyword. 

 

Workaround is to simply recreate whatever dynamic code the global file summary format has, but I was hoping to have a solution whereby if I updated the global preferences then all asset summaries would update, not have to update each asset listing one-by-one so they all match.

 

Cheers


(Dcook) #2

Hmm tricky one, was going to suggest something with keyword modifiers..

^replace_keywords:asset_summary_{asset_id}

and/or ^as_asset:

 

 

Does %asset_id^as_asset:asset_summary% work?


(Bart Banda) #3

I don't think this is supported, but should hopefully be an easy thing to add in. I'll create an idea for it in our roadmap and go from there.