We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 43124
    • 21 Posts
    Hello. I have some problem in linking the multidomain site.
    How to check in MODx API REVO the existanse of the resource in choosen context with some alias? For example, I have two context - main 'web' context & 'subdomain' context. And I set in my cookie the context of some user. I have pages with alias - 'contacts' in both context, and need to link user to the subdomain.domain.contacts.html, cause of in cookie I know, he belongs to this context, and the page subdomain.domain.contacts.html - exist.

    I try to find the solution in GetResources snippet, but have seen it has no 'alias parameter'.

    Be very glad to know the solution.
      • 3749
      • 24,544 Posts
      You can use the
      property in getResources. With that, you can use any field of the resource (e.g., 'alias' and 'context_key').
        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