benbyf Posted July 19, 2021 Posted July 19, 2021 there happen to be a module to grab the path of a image to be rendered by PW and change to another, e.g. to use on dev site so as not to have to download all the same images (which there are lots) from the live site for testing?
androbey Posted July 19, 2021 Posted July 19, 2021 Maybe that's what you are looking for: https://processwire.com/blog/posts/pw-3.0.137/#on-demand-mirroring-of-remote-web-server-files-to-your-dev-environment 4
benbyf Posted July 20, 2021 Author Posted July 20, 2021 14 hours ago, androbey said: Maybe that's what you are looking for: https://processwire.com/blog/posts/pw-3.0.137/#on-demand-mirroring-of-remote-web-server-files-to-your-dev-environment This is amazing thank you!
bernhard Posted July 20, 2021 Posted July 20, 2021 Even if that's unlikely but if you are using RockMigrations that's as simple as setting a config variable: $config->filesOnDemand = "https://www.example.com"; https://github.com/BernhardBaumrock/RockMigrations/blob/02bc1b348b3e854d9a46b4cd79929f40233a2732/RockMigrations.module.php#L413-L453 1
lpar Posted December 15, 2022 Posted December 15, 2022 This works great, but not in textarea fields where there are variations of the original image. Is there a way to enhance this to detect textarea variations too?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now