jploch Posted June 15, 2022 Share Posted June 15, 2022 Hi folks, I just tried to export/import some pages with meta() data using the ProcessPagesExportImport module from the core. Unfortunately the data is not exported. Is there a way to migrate pages with meta data to a new pw installation? See the API docs for $page->meta() for more information. Since this is a relatively new addition it might not be possible yet without custom code. Since my new pagebuilder module uses the meta data to save the styling of pages I might develop something myself, just wanted to ask before.. Link to comment Share on other sites More sharing options...
jploch Posted June 17, 2022 Author Share Posted June 17, 2022 I had a look at it and it wasn't that complicated to implement. Here is a version of the ProcessPagesExportImport module that support export/import of $page->meta():https://github.com/jploch/ProcessPagesExportImport Would be nice to have this in the core. 1 Link to comment Share on other sites More sharing options...
bernhard Posted June 17, 2022 Share Posted June 17, 2022 5 hours ago, jploch said: Would be nice to have this in the core. You could create a PR then ? 1 Link to comment Share on other sites More sharing options...
jploch Posted June 19, 2022 Author Share Posted June 19, 2022 On 6/17/2022 at 7:31 PM, bernhard said: You could create a PR then ? I might do that, but I am still not sure what's the best way to implement this. I made changes to the PagesExportImport Module, but I think it would be better to implement this in the core PagesExportImport Class. That would make the feature available to the API and other modules as well. But I am not sure how to do that, because to import the meta data, the pages must be created first, so the code might only work in the module, after the pages are created. EDIT: I made a PR 1 Link to comment Share on other sites More sharing options...
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