Number of Pages in Interactive Book

johncurr's picture

Hello,

I can see that the maximum number of pages that can be added to an Interactive Book is fifty. I would like to know whether this can be overridden so that more pages can be added.

Summary: 
Adding more than fifty pages to Interactive Book
Content types: 
BV52's picture

Hi johncurr,

This can be done if you make changes to the code. The line of code below controls the maximum number of chapters:

https://github.com/h5p/h5p-interactive-book/blob/4d9796059bc35581b0a7f4a...

Please note that making changes may cause undesirable effects in the functionality of the content.

-BV

otacke's picture

Hi all!

This can also be overridden using the alter_semantics hook (please read https://h5p.org/node/2692 for details) that H5P offers without patching the original code (and re-patching after an update). That's often advisable, especially if you intend to keep content shareable without sideeffects for others.

Best,
Oliver

Best,
Oliver