What is the naming convention for the Reuse .h5p files?

I need to migrate 1000s of H5P contents from Drupal to WordPress and I can access the .h5p files from Drupal filesystem. But how do I know which Drupal node corresponds to each .h5p package?

In other words I need help locating the function that creates the .h5p file name (I guess from the node title) so I can list the file name along with the title.

otacke's picture

https://github.com/h5p/h5p-php-library/blob/fb5100a53517c4c9b5477aaa114338ce816c3e81/h5p.classes.php#L1953

Thank you so much. I guess my problem is understanting hos the slug is built, eg I have a Drupal alias:

math-cards-9-9

but the filename is:

math-cards-9-13-9938

otacke's picture

  • https://github.com/h5p/h5p-php-library/blob/fb5100a53517c4c9b5477aaa114338ce816c3e81/h5p.classes.php#L2400-L2419
  • https://github.com/h5p/h5p-php-library/blob/fb5100a53517c4c9b5477aaa114338ce816c3e81/h5p.classes.php#L3211