We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 35545
    • 35 Posts
    Hi,

    I use multiple context. I configured one context as default with specific settings. Now i need this context to by duplicated. I named the context my-domain1.com. But when i'm trying to copy it and give a name like my-domain2.com it wil say i use an invalid key. When i remove the - and . it works. After the context is duplicated i can change the name and add the - and .

    This looks like a bug right?
      • 22303 MODX Staff
      • 10,725 Posts
      At the moment you cannot use those characters in a Context key. There are already requests for this to be changed and this is on the roadmap. For now, you'll have to avoid using anything that is not valid in a PHP variable name.
        • 35545
        • 35 Posts
        Okay, but why does it work when i manually add a context or change the name afterwards?