Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve and explain migration of media from standard WP install to playground #1525

Open
Lovor01 opened this issue Jun 19, 2024 · 1 comment

Comments

@Lovor01
Copy link

Lovor01 commented Jun 19, 2024

This issue is also a comment in trac #60375

I was having problem with setting playground demo of my plugin to work - more precisely, images did not show. I solved it by creating zip file with uploads folder and modifying exported WXR file to replace url's to reflect local file system. I also understand that it could be done in another way, by exporting database, replacing urls in database and importing it into playground.

As a temporary solution to ease media transfer I propose following:

  1. Add property "rootImportURL" in blueprint json importWXR and runSql steps - if this property exists in these steps, URL-s would be modified as a part of import step in a way that root URL is replaced by new installation root URL. In playground, root URL is "/". So, for example https://mydomain.com/ would be replaced by /
  2. Create documentation which explains steps how to incorporate media files in installation - I propose writing docs for current situation and afterwards they would be replaced by this easier solution which was proposed in 1.
@bgrgicak
Copy link
Collaborator

@Lovor01 we are trying to collect examples like this in the Blueprint gallery.
It would be great if you would contribute your example there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants