Hi all.
I'm trying to get organised, by creating a dev subdomain as a context within my Modx installation.
I have it all working - but I have one issue. The paths to all the images css etc are looking in the root level of my subdomain (which I would expect), but if I try and add images to resources (within TinyMce or TVs) the path it creates is from the Web context.
Do I need to create a sepearate Media Source for the Dev context?
and if so, how does that affect my workflow - The reason I have set this all up is so that the client can approve pages on the dev site - and then I could just change the parent from the Dev context to the Web context when approved - but then I would have to go and fix all my paths again - Any ideas?
Maybe contexts isn't the way forward?
What's the issue with having the paths coming from the web context if the intention is to move resources to their anyway?
Another alternative solution would be to create a 'dev only' area that only X usergroup can access and assign your clients user to this group. Or use pagelocker to page protect an individual or group of resources.
I *think* you need to go into media sources and edit the file system resource and set the base path and base url there, as well as the relative to no.
Sorry I kept second guessing myself - someone else may be able to give you a more definitive answer but yes I believe you can do it with your current media source but if you edit the paths and relativity there that might steer you in a better direction.
Try setting the paths to
www.domain.com/assets/files/
and turn the relativity off on both base path and base url.