Copy / Duplicate various things #905

Closed
opened 2026-02-04 22:51:19 +03:00 by OVERLORD · 14 comments
Owner

Originally created by @InspireToCode on GitHub (Nov 14, 2018).

You can copy pages, which is great

But what about copying chapters? Entire books?
Roles? Mainly for permissions sake, so maybe even just a "copy custom permissions to x"

Thanks for the awesome app, love the hard work .

Originally created by @InspireToCode on GitHub (Nov 14, 2018). You can copy pages, which is great But what about copying chapters? Entire books? Roles? Mainly for permissions sake, so maybe even just a "copy custom permissions to x" Thanks for the awesome app, love the hard work .
OVERLORD added the 🔨 Feature Request🏭 Back-End labels 2026-02-04 22:51:19 +03:00
Author
Owner

@tpoindessous commented on GitHub (Mar 11, 2019):

Hi !

We use BootStack for sharing documentations with our clients.

We created one Bookshelve for each client. We made one template Bookshelve and it would be great to be able to duplicate this entire Bookshelve for a new client.

If you have a SQL script or a Shell script, it will still make my day 😄

Thanks !

@tpoindessous commented on GitHub (Mar 11, 2019): Hi ! We use BootStack for sharing documentations with our clients. We created one Bookshelve for each client. We made one template Bookshelve and it would be great to be able to duplicate this entire Bookshelve for a new client. If you have a SQL script or a Shell script, it will still make my day 😄 Thanks !
Author
Owner

@p1xelshader commented on GitHub (Aug 27, 2019):

Just started using BookStack and I think it's absolutely fantastic! I would also love to be able to create a new book by copying an existing book. The reason being I have created book templates to ensure the structure of our books is consistent. Keep up the great work! :)

@p1xelshader commented on GitHub (Aug 27, 2019): Just started using BookStack and I think it's absolutely fantastic! I would also love to be able to create a new book by copying an existing book. The reason being I have created book templates to ensure the structure of our books is consistent. Keep up the great work! :)
Author
Owner

@p1xelshader commented on GitHub (Aug 28, 2019):

Dear @ssddanbrown will you consider adding this feature request to a milestone? In the mean time, would you be so kind as to give me some pointers on which tables to insert records into? All I really need is to copy a book which has chapters but no pages. It will save my team a huge amount of time, as we're creating lots of books with exactly the same chapter structure. Thanks dude!

@p1xelshader commented on GitHub (Aug 28, 2019): Dear @ssddanbrown will you consider adding this feature request to a milestone? In the mean time, would you be so kind as to give me some pointers on which tables to insert records into? All I really need is to copy a book which has chapters but no pages. It will save my team a huge amount of time, as we're creating lots of books with exactly the same chapter structure. Thanks dude!
Author
Owner

@dgarlans commented on GitHub (May 19, 2020):

My use case is essentially identical to tpoindessous - we are using bookstack to maintain internal documentation about our clients, and it would save us a lot of time to be able to duplicate a book and have the the entire chapter and page structure created. The chapters would be like "hardware" "software" "SLA details" "Network information" "Personnel details".

It's not too big a burden to create one book from time to time, but when we are expecting to onboard a number of clients in the near future, it would easily end up saving hours of manual labor.

@dgarlans commented on GitHub (May 19, 2020): My use case is essentially identical to tpoindessous - we are using bookstack to maintain internal documentation about our clients, and it would save us a lot of time to be able to duplicate a book and have the the entire chapter and page structure created. The chapters would be like "hardware" "software" "SLA details" "Network information" "Personnel details". It's not too big a burden to create one book from time to time, but when we are expecting to onboard a number of clients in the near future, it would easily end up saving hours of manual labor.
Author
Owner

@benoitclem commented on GitHub (Dec 31, 2020):

Hi all,
In our organisation we also use bookstack a lot, and it's fantastic 👍. Today, as we grow, we would love to have this ability to copy entire books. Is there any plans for this feature request in a near future?
Thanks in advance.

@benoitclem commented on GitHub (Dec 31, 2020): Hi all, In our organisation we also use bookstack a lot, and it's fantastic 👍. Today, as we grow, we would love to have this ability to copy entire books. Is there any plans for this feature request in a near future? Thanks in advance.
Author
Owner

@rassakali commented on GitHub (Dec 17, 2021):

Hello,

Is there any news about this request?

@rassakali commented on GitHub (Dec 17, 2021): Hello, Is there any news about this request?
Author
Owner

@ssddanbrown commented on GitHub (Dec 17, 2021):

@rassakali No

@ssddanbrown commented on GitHub (Dec 17, 2021): @rassakali No
Author
Owner

@rassakali commented on GitHub (Dec 17, 2021):

Is it a planning or design issue that is blocking implementation?
How can we move this application forward?
Is there a workarounds for copying a book?
We really need this functionality.

@rassakali commented on GitHub (Dec 17, 2021): Is it a planning or design issue that is blocking implementation? How can we move this application forward? Is there a workarounds for copying a book? We really need this functionality.
Author
Owner

@ssddanbrown commented on GitHub (Dec 18, 2021):

Is it a planning or design issue that is blocking implementation?

Neither really, More a lack of desire and time. The original issue request has very wide scope which makes things more difficult also (Since it requests roles and permissions in addition to books & chapters).

How can we move this application forward?

The application is constantly moving forward, just not in respect to this feature.

Is there a workarounds for copying a book?

Not really, apart from maybe using the REST API to create a programmatic external solution.

@ssddanbrown commented on GitHub (Dec 18, 2021): > Is it a planning or design issue that is blocking implementation? Neither really, More a lack of desire and time. The original issue request has very wide scope which makes things more difficult also (Since it requests roles and permissions in addition to books & chapters). > How can we move this application forward? The application is constantly moving forward, just not in respect to this feature. > Is there a workarounds for copying a book? Not really, apart from maybe using the REST API to create a programmatic external solution.
Author
Owner

@p1xelshader commented on GitHub (Dec 18, 2021):

Is it a planning or design issue that is blocking implementation? How can we move this application forward? Is there a workarounds for copying a book? We really need this functionality.

@rassakali If you want to help move it forward there are a few things you can do...

  • Sponsor Dan (he's not getting paid to develop this!)
  • Contribute to the project yourself

@ssddanbrown Thanks for your continued work, and I hope you have a nice Christmas!

@p1xelshader commented on GitHub (Dec 18, 2021): > Is it a planning or design issue that is blocking implementation? How can we move this application forward? Is there a workarounds for copying a book? We really need this functionality. @rassakali If you want to help move it forward there are a few things you can do... - Sponsor Dan (he's not getting paid to develop this!) - Contribute to the project yourself @ssddanbrown Thanks for your continued work, and I hope you have a nice Christmas!
Author
Owner

@rassakali commented on GitHub (Dec 18, 2021):

Thank you very much for your answers it is very friendly :)
I have just made a small donation to Dan. We are a small association with limited finances.
@ssddanbrown, Thanks for the tip on using APIs, I'll test...

Thanks to Dan and thank you all

@rassakali commented on GitHub (Dec 18, 2021): Thank you very much for your answers it is very friendly :) I have just made a small donation to Dan. We are a small association with limited finances. @ssddanbrown, Thanks for the tip on using APIs, I'll test... Thanks to Dan and thank you all
Author
Owner

@ssddanbrown commented on GitHub (Dec 18, 2021):

Lol, Fair play for following through on that!

Just reminded myself of the page copy logic, and think it should be fairly straightforward to expand for chapters and books.
I'll assign this to the next feature release with the following scope:

  • Add copying of Books and Chapters
    • This will have an intermediate view for setting the name and parent book (for chapter copies).
    • This will copy tags.
    • This won't duplicate or re-assign attachments or images within pages.
      • Attachments will not be copied or assigned to the copied content.
      • Images will be visible in copied content but remain related to their original pages.
    • Page/Chapter/Book permissions will not be copied (At least in this initial implementation).
  • Add copying of Roles
    • This will not have an intermediate screen but instead the "Copy" button on one role will take you to the existing create view but with the form pre-filled based upon the original role.
    • Permissions for that role, assigned to pages/shelves/chapters/books will not be copied (At least in this initial implementation).

I'd consider the above to complete this issue, with future new issues to cover any additional specific requirements.
Does that sound reasonable?

@ssddanbrown commented on GitHub (Dec 18, 2021): Lol, Fair play for following through on that! Just reminded myself of the page copy logic, and think it should be fairly straightforward to expand for chapters and books. I'll assign this to the next feature release with the following scope: - Add copying of Books and Chapters - This will have an intermediate view for setting the name and parent book (for chapter copies). - This will copy tags. - This won't duplicate or re-assign attachments or images within pages. - Attachments will not be copied or assigned to the copied content. - Images will be visible in copied content but remain related to their original pages. - Page/Chapter/Book permissions will not be copied (At least in this initial implementation). - Add copying of Roles - This will not have an intermediate screen but instead the "Copy" button on one role will take you to the existing create view but with the form pre-filled based upon the original role. - Permissions for that role, assigned to pages/shelves/chapters/books will not be copied (At least in this initial implementation). I'd consider the above to complete this issue, with future new issues to cover any additional specific requirements. Does that sound reasonable?
Author
Owner

@rassakali commented on GitHub (Dec 19, 2021):

Hello,
I think this is a very good and complete start, maybe add the possibility to also copy attachments and images according to a parameter. but this is not urgent.
Just to be sure, copying a book or chapter should also copy its children, whether they are chapters or pages.

@rassakali commented on GitHub (Dec 19, 2021): Hello, I think this is a very good and complete start, maybe add the possibility to also copy attachments and images according to a parameter. but this is not urgent. Just to be sure, copying a book or chapter should also copy its children, whether they are chapters or pages.
Author
Owner

@ssddanbrown commented on GitHub (Dec 20, 2021):

Okay, have focused on this over the last couple of days.
Changes in https://github.com/BookStackApp/BookStack/pull/3118/files now merged into master to be part of the next feature release (Aiming to release this month).

Since this covers everything in the original request, and in my proposal above, I'll close this off. Further copy/duplicate requests, if required, can be made in new, more specific, issues.

@D347HxD

Just to be sure, copying a book or chapter should also copy its children, whether they are chapters or pages.

Yeah, That's the case. Books and Chapter copies will copy with all child items subject to the limitations I listed in my proposal above.

@ssddanbrown commented on GitHub (Dec 20, 2021): Okay, have focused on this over the last couple of days. Changes in https://github.com/BookStackApp/BookStack/pull/3118/files now merged into master to be part of the next feature release (Aiming to release this month). Since this covers everything in the original request, and in my proposal above, I'll close this off. Further copy/duplicate requests, if required, can be made in new, more specific, issues. @D347HxD > Just to be sure, copying a book or chapter should also copy its children, whether they are chapters or pages. Yeah, That's the case. Books and Chapter copies will copy with all child items subject to the limitations I listed in my proposal above.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#905