We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20135
    • 188 Posts
    My issue is with file_manager_path, file_manager_url and resource_url settings, let me explain how is issue is showing.

    In one getResources list I have Static Resources. The Resource Browser restricts the user to the folder that contains all of the images and PDFs that the client uses (assets/context/). Here's the settings that do that:
    file_manager_path = /assets/context/
    file_manager_url = assets/context/
    resource_path = blank
    resource_url = assets/context/

    After much playing about, I got the Static Resources to load correctly using these settings.

    However, I have another getResources list, which takes normal resources and lists out pagetitle, content, etc PLUS Template Variables, one of which is an image. I can select my image from the Resource Browser using the restricted settings. I can also view the thumbnail of the image in the Manager. However, on the front end of the site, the image breaks, because instead of going to mysite.com/assets/context/images/filename.jpg, the link is created as mysite.com/images/filename.jpg.

    How can I add the extra "hidden" folders without screwing up the Static Resources, which work completely perfectly, or without the client having to manually add "assets/context/" to the front of all the image file names in the TV?
      • 36502 ☆ A M B ☆
      • 491 Posts
      have you added the "processTVs" option to your getResources call?
        TilliLab | MODX Ambassador
        website
        • 22303 MODX Staff
        • 10,725 Posts
        See the input options for the Image TV, specifically the Base URL and Base URL Relative settings.
          • 20135
          • 188 Posts
          Thanks guys - tillilab had the answer. Once I processed the TV, it spat out the whole img tag, along with the correct path, so I just needed to remove the img tag I'd added to the chunk. All good, thanks.