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

    Just a note to anyone else out there struggling with multi-context installs and trying to use Gallery.
    I got it working by adding the following settings to my context where I need Gallery to work (not web context, where it is working fine).

    gallery.assets_url ([http://www.webcontext-sitename.com]/assets/components/gallery/)
    gallery.files_path ([/home/[webcontext-sitename]/public_html]/assets/components/gallery/files/)
    gallery.files_url ([http://www.webcontext-sitename.com]/assets/components/gallery/files/)
    gallery.phpthumb_url ([http://www.webcontext-sitename.com]/assets/components/phpthumb/)

    I’ll post link to it working on the sites as soon as I’ve got them all fixed.

    Caveat: it shows in the status bar that the resource is being fetched from a different domain. I decided that the convenience of getting this working now was worth it.

    Hope this helps someone.

    Thanks to SplittingRed for the Gallery Snippet: it’s fantastic! It’s probably a real pain to get the context thing working wink
      illegitimati non carborundum
      • 6902
      • 126 Posts
      This took care of my problem... you also have to set context-specific settings for the filemanager_paths too if you want to just use the image browser (via TinyMCE or the like).

      Also, because the image technically still resides on the main web context’s domain, you have to go to the main settings and set up phpthumb to allow hotlinking.
        • 5340
        • 1,624 Posts
        No luck in my case.
        I set up the 4 paths but nothing appears. Anything else I should look for. Is there a test scenario?
          • 6902
          • 126 Posts
          Quote from: cipa at Feb 01, 2011, 02:22 PM

          No luck in my case.
          I set up the 4 paths but nothing appears. Anything else I should look for. Is there a test scenario?

          Did you also allow hotlinking in the system preferences (off by default)?
            • 5340
            • 1,624 Posts
            I think I forgot to install IF and my gallery did not appear. I’ll post later if it works
              • 5340
              • 1,624 Posts
              Everything works as expected. I needed it for a gallery here in my revo context set up
                • 37286
                • 160 Posts
                I am using revo 2.2.4 and gallery 1.5.2. I had to modify these settings a bit to make it work on my setup. As you can see the files_path and files_url location appears to be different. It may be just my settings were somehow modified or the directory structure for gallery has changed a little. For anyone else needing to do this same thing, here was my solution.

                gallery.assets_url ([http://www.webcontext-sitename.com]/assets/components/gallery/ )
                gallery.files_path ([/home/[webcontext-sitename]/public_html]/assets/gallery/)
                gallery.files_url ([http://www.webcontext-sitename.com]/assets/gallery/ )
                gallery.phpthumb_url ([http://www.webcontext-sitename.com]/assets/components/phpthumb/ )
                  • 39929
                  • 113 Posts
                  Hello! Where am I going to put this code?


                  gallery.assets_url ([http://www.webcontext-sitename.com]/assets/components/gallery/ )
                  gallery.files_path ([/home/[webcontext-sitename]/public_html]/assets/gallery/)
                  gallery.files_url ([http://www.webcontext-sitename.com]/assets/gallery/ )
                  gallery.phpthumb_url ([http://www.webcontext-sitename.com]/assets/components/phpthumb/ )
                    • 37286
                    • 160 Posts
                    You'll have to create them in the system settings.
                      • 39929
                      • 113 Posts
                      Quote from: insomnix at Jan 10, 2015, 08:01 PM
                      You'll have to create them in the system settings.

                      Got it.Thank you.
                      can't find
                      gallery.phpthumb_url ([http://www.webcontext-sitename.com]/assets/components/phpthumb/ )
                      and
                      gallery.assets_url ([http://www.webcontext-sitename.com]/assets/components/gallery/ )
                      in modx Revo 2.3.2 . What shall I do.