I tried this one yesterday but just tested with it again just to check. Does anyone know what version replace_keywords was introduced. i can't get it to work!
What version are you on Chris? Tom is right, you need the curly brackets in there. Did you try and do it without keyword modifiers inside the replacement value first to see if that works?
it looks like the globals keywords wasn't supported by replace_keywords until sometime after 4.16. I have tested this on 4.12 and found it failed, and it works in 4.18.
BUT there is an interesting complication when it comes to keyword scope in 4.18:
!WORKS (in standard page or type format): %globals_asset_name^replace_keywords:notempty:{asset_assetid}%
It seems as though when using replace_keywords you can only refer to to a keyword within the current scope of the former keyword i.e. globals or local.
I'm now working on a v5+ system. I'm able to get replace keywords, but now I'm having problems with modifying keywords that are being interpreted with replace_keywords.
Yea this was reported not working earlier this week as well, looks like the modifiers aren't working inside the {} bit, which they probably should. Hasn't been fixed yet however.
It might generate an error if it doesn't eq 1, but you might be able to print an asset id that doesn't have any content in that case? So something like
%globals_asset_metadata_foo^:eq:1:111:222^as_asset:asset_contents% where id 222 is an asset with no content.
Yea this was reported not working earlier this week as well, looks like the modifiers aren't working inside the {} bit, which they probably should. Hasn't been fixed yet however.
Im using Matrix v4.18.5 and can't seem to get global keywords working inside the { }.
I have a search page asset displaying assets then grouping it by a metadata field (that part is working fine and is not the issue).
Here's the issue:
Im trying to link the group name to specific assets (outside the search page criteria) depending on the group name (metadata field)
When using the keyword above it fails (displays {globals_asset_short_name_linked on screen) when I remove the globals_ and _11528 the keyowrd itself works but is then using the wrong linked asset short name.
Can someone let me know what to use instead of the : symbol as that seems to be an issue as well.
Anyone other ideas on how to fix this would be great.