We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 41055
    • 24 Posts
    MODX Revolution
    MODX Revolution 2.2.4-pl (traditional)

    This doesn't really make sense to me.
    I have set several contexts and I can pull them with GetResource, the all appear as they should. My context is within a folder, with its own index.

    While in one context I cannot link to each resource other than the current context I am in. I have added site_url, base_url and http_host to both my context and my web context. I have tried with [[+base]] and building my url and [[~[[id]]], no luck. Should I set a variable that will pull my folder location in my url? is there another way to dynamically pull the path to the context?

      • 3749
      • 24,544 Posts
      Is the user logged in to a particular context? To allow the user to jump to resource in another context, you need to use the &contexts property in the Login tag:

      [[!Login? &contexts=`web,othercontext`]]


      That will log the user in to both contexts.


      ------------------------------------------------------------------------------------------
      PLEASE, PLEASE specify the version of MODX you are using.
      MODX info for everyone: http://bobsguides.com/modx.html



        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting