#56134Conditions in page Constants
Description
I have found a lack of functionality of Constants, when using it with conditions placed in Constants.
Let me explain in simple snippet,
Working example:
Page Setup:
config.baseURL = {$protocol}{$context.live}
[globalString = IENV:HTTP_HOST={$context.develop}]
config.baseURL = {$protocol}{$context.develop}
[global]
Page Constants:
protocol = http://
context{
live = somepage.X.com
develop = somepage.Y.com
}
Above code works fine, but when we moves this code to the Constants you see a problem with {$context.develop} in the line with [globalString = ..]
Not working example:
Page Setup:
config.baseURL = {$baseURL}
Page Constants:
protocol = http://
context{
live = somepage.X.com
develop = somepage.Y.com
}
baseURL = {$protocol}{$context.live}
[globalString = IENV:HTTP_HOST = {$context.develop}]
baseURL = {$protocol}{$context.develop}
[global]
So it seems that conditions i Constants need a small upgrade to full works.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.