We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32070
    • 87 Posts
    I have a site with multiple contexts. Each context has been given access to a different media source. The media sources are working correctly with other assets - I can assign images to template variables and the MODX Resource Browser correctly shows the media source for the current context.

    However, if I try to add a static resource, then the resource browser attempts to load the main filesystem media source, even if the default_media_source setting has been changed for either the user, the context, or both.

    I checked out the headers for what was being sent to directory.php when I attempt to select the file for the static resource - regardless of the context and associated media source - it's always sending a source param = 1.

    for example:


    For the template variables, it correctly sets the source to the correct id:



    Changing the system default_media_source setting has no effect either - the resource browser always seems to want to pull from the media source with id 1 for static resources.

    Any thoughts on this? I'm not sure where to start with fixing this issue....

    This question has been answered by opengeek. See the first response.

    [ed. note: webandflow last edited this post 12 years, 10 months ago.]
      Des
      webandflowdesign.com
    • discuss.answer
      • 22303 MODX Staff
      • 10,725 Posts
      It is a bug. Static Resources came before media sources and have never been properly "hooked up" as they are on Static Elements.
        • 32070
        • 87 Posts
        Thanks! Makes sense!

        I didn't see anything in the bug tracker - should I file it or is it already on the radar?
          Des
          webandflowdesign.com