I would like to save all all pages in the content folder using a PHP script.
Reason: I have built a website on my test server and treansferred it to a live server.
For some pages I use the gallery block field.
Unfortunately all paths were saved as follows:
Unfortunately, that didn’t work. The paths are still included…
I have tried it with save($item->content()->toArray()) and update($item->content()->toArray())
Strange that the paths are included here at all …
Local/Test server: Laragon under Windows 11
What else could I do to remove the paths from the galleries of the content files?
I stored the page for filling the content at my hosting provider in a subfolder protected with .htpasswd. I have moved (updated) the content folder to my local server from time to time.
I will ask them if they have any ideas.
Nevertheless, I still have the problem that I now have the wrong file paths everywhere. Search and replace in the editor is only possible to a limited extent, as the paths vary greatly in the project…