mel47

Page Import-export

Recommended Posts

Hi,

Sorry, I don't know where to put this, since I'm not sure if it's an issue or a wishlist. This concerns Page Import/Export functionality.

  • Is it possible to specify the order of import?
    Some page have reference to other pages. Since there not yet existent, it create a notice. I solved the issue by re-running the json export to update those pages. However it will easily solved if I could choose which template should be import first (although I think!)
  • I have trouble with images. They get uploaded in /assets... however they don't show up in their respective inputfieldFile

Thanks!

Share this post


Link to post
Share on other sites

The page export process should sort by the number of segments in the path to each page so that when you import they will be created in the correct order. At least that is how I handle it in Migrator: https://github.com/adrianbj/ProcessMigrator/blob/eaf8255aded36033bcd468c59b235b9a0eb6b785/ProcessMigrator.module#L379-L387

This sounds like a bug to report on Github.

 

Edited by adrian
Updated link to correct block of code for pathsegments
  • Like 2

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Recently Browsing   0 members

    No registered users viewing this page.