Could someone help with this?
Solved! Go to Solution.
What are you trying to add is it something that displays in stage but not in prod or vis verse ? Not sure what you mean by tag or is this some tracking/analytics tag
I have a wrapper this is in the header which only displays in stage as it looks up “what environment am i” if prod do this if stage do that?
Hi @isaac_dessert -
Are you using the Wrapper in Studio? (found under Studio > Community Style > Wrapper > [Your skin])
If so, you won't necessarily need the custom content component code from the article you referenced.
You can instead use something along the lines of:
<#if !config.getString('phase', '')?matches('stage')>
in the Studio wrapper (e.g. the Hitbox) to use different code per environment
Hope that helps!
This seems to be exactly what I'm looking for. Is there a full article on this topic that I can reference for more reading material?
Great, I'm glad that was helpful! This doc explains the wrapper: https://community.khoros.com/t5/Skins-and-assets/Edit-the-page-wrapper/ta-p/109069. And if you scroll down to the comments you'll see some nice relevant example code.
Welcome to the Technology board!Curious about our platform? Looking to connect on social technology? You've come to the right place!