On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • Does anybody already used the ipCountryRedirect snippet?
    https://github.com/jdaehne/ipCountryRedirect
    Docs is not enough for me. I do not understand how to set it.
    What means :
    Step
    Define all your country-codes in your contexts with the context-key ipcr.countries. Example:

    de = de,at,ch
    us = us

    ??
    I can see this name into the context settings tab filtering from core to ipCountryRedirect but not sure what can be done there.
    and the goal is to set to eng context for non French speaker countries

    Thanks

    full doc:

    f you have 3 Context:

    web = Root-Context
    de = Germany
    us = USA
    1. Step
    Place the Snippet [[!ipCountryRedirect]] into your Root-Context (web) into your site_start.

    2. Step
    Define all your country-codes in your contexts with the context-key ipcr.countries. Example:

    de = de,at,ch
    us = us
    Finished!
    • Hi elz064

      Seems like you need to, at the very least register with https://www.iplocate.io/ to enable their service.

      If that is not a requirement then you have to define your contexts, please see here https://docs.modx.com/revolution/2.x/administering-your-site/contexts