We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 46073
    • 65 Posts
    My MIGx is including the public_html in the path to my image like:

    public_html/images/image1.jpg

    I need:

    images/image1.jpg

    id there an easy way to strip that out?
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Are you using a media source for selecting the images?
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 46073
        • 65 Posts
        Quote from: sottwell at Jan 09, 2014, 10:02 AM
        Are you using a media source for selecting the images?
        Not sure what you mean. I am selecting the image in the MIGx popup in my Template Variables tab
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Go to the TV in question in the elements tab. Open its "Media Sources" tab and tell me what you see.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 46073
            • 65 Posts
            Quote from: sottwell at Jan 09, 2014, 10:09 AM
            Go to the TV in question in the elements tab. Open its "Media Sources" tab and tell me what you see.
            Context: web
            Source: Filesystem
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              When you select the image, do you see the whole file system, including the core folder?
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 46073
                • 65 Posts
                Quote from: sottwell at Jan 09, 2014, 10:13 AM
                When you select the image, do you see the whole file system, including the core folder?
                Yes.

                I have to click through public_html > images to get to my images
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  Hm. Go to Media Sources (in the Tools menu) and open the Filesystem media source (right-click and choose "Update Media Source").

                  What does it have for the basePath and the baseURL fields?
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org
                    • 46073
                    • 65 Posts
                    Quote from: sottwell at Jan 09, 2014, 10:20 AM
                    Hm. Go to Media Sources (in the Tools menu) and open the Filesystem media source (right-click and choose "Update Media Source").

                    What does it have for the basePath and the baseURL fields?

                    Both say Textfield
                      • 28042 ☆ A M B ☆
                      • 24,524 Posts
                      Ok. I'm not inclined to attempt to find out what's wrong with that, something in your configuration.

                      Here's what we'll do. Create a new Media Source. Name it something appropriate to the TV.

                      Open it for update, and in those two fields I mentioned put

                      images/

                      Make sure the two basePathRelative and baseURLRelative fields are set to Yes.

                      Save it.

                      Tell me when you're done.
                        Studying MODX in the desert - http://sottwell.com
                        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                        Join the Slack Community - http://modx.org