I’m testing out the ^with_get
or ^with_post
keyword premodifiers and finding that the %globals_*%
keywords (docs) aren’t being populated – or might being populated too late.
I’m following the example in the documentation and I have two Standard Page assets that look like so; the first includes the contents of the second, with the addition of the GET parameter.
Page Asset 1
%globals_asset_contents:12345^with_get:root=187%
Page Asset 2 (ID 12345)
globals_get: %globals_get%
globals_get_root: %globals_get_root%
nested_get_root: %nested_get_root%
The result of hitting the URL for Page Asset 1
is HTML that looks like this:
globals_get: []
globals_get_root:
nested_get_root: 187
The same behaviour is seen for POST as well. After seeing that the %globals_get
keywords didn’t have the parameter I was passing, I tried using the %nested_get_*%
keyword that’s supposed to be for Nested Content
assets and tada, it worked. This makes it feel like the processing order is amiss; either globals being populated too late or these keywords being replaced too early.
I’m on Matrix Version: 5.3.3.0, which means these premodifiers are available and I’m using them successfully in other contexts (eg Standard Page to Asset Listing’s default type Bodycopy) where %globals_get%
is populated.
What do you think, looks like a bug?