lorna
12 years agoMaven
Determine phase - config.getString
Hi,
I'm following How to determine the phase to render the proper content.
When I have this in a custom component in satge, it always prints out 'prod'.
${config.getString("phase", "prod")}
What am I doing wrong?
Thanks
Hi lorna,
from what you say - it seems that it's returning the default value all the times (that is 'prod') and this suggests that the variable may not be correctly exposed in your staging environment. The best idea would be to raise this with our support department and ask them to include 'phase' in the unrestricted.properties list if that is not already the case.
Hope this helps,