When I try to export a book, it only seems to export the book page, not the underlying pages.

Or am I missing something obvious?

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

koosvdkolk created an issue. See original summary.

kartagis’s picture

The book page is a config entity, therefore can be exported with `drush cex`. In my experimenting, I was able to successfully export all the book nodes.

jvdkolk’s picture

@kartagis: Thanks for your reply! But did your method include the book hiearchy, so in other words: where you able to automatically export and import the complete book + structure?

kartagis’s picture

What do you mean by structure? Could you tell me the way to reproduce it?

jvdkolk’s picture

E.g*:

  • Part I. Foundations
    • Chapter 1. Introduction to Quantum Widgets (pp. 1–12)
      • 1.1 What Is a Widget? (pp. 2–4)
      • 1.2 Historical Context (pp. 5–8)
      • 1.3 Why Quantum? (pp. 9–12)
        • 1.3.1 Limitations of Classical Widgets (p. 10)
        • 1.3.2 Quantum Entanglement in Supply Chains (pp. 11–12)
    • Chapter 2. Core Principles (pp. 13–34)
      • 2.1 Conservation of Widget Mass (pp. 14–17)
      • 2.2 Phase Coherence and Packaging (pp. 18–23)
      • 2.3 Safety Guidelines (pp. 24–34)
        • 2.3.1 Handling Unstable Widgets (pp. 26–28)
        • 2.3.2 Emergency Shutdown Protocols (pp. 29–34)
  • Part II. Applications
    • Chapter 3. Industrial Deployment (pp. 35–58)
      • 3.1 Scaling Up Production (pp. 36–41)
      • 3.2 Cold-Chain Logistics (pp. 42–46)
      • 3.3 Compliance & Regulation (pp. 47–58)
    • Chapter 4. Case Studies (pp. 59–80)
      • 4.1 Municipal Widget Grids (pp. 60–67)
      • 4.2 Widget-Assisted Medicine (pp. 68–74)
      • 4.3 Emerging Markets (pp. 75–80)
        • 4.3.1 Arctic Installations (p. 77)
        • 4.3.2 Orbital Platforms (pp. 78–80)
  • Appendices
    • Appendix A. Math Reference (pp. A-1–A-12)
    • Appendix B. Glossary of Terms (pp. B-1–B-8)
    • Appendix C. Further Reading (pp. C-1–C-4)
  • Index (pp. 81–90)

I want to be able to export/import the entire thing, in one big ZIP

*) Kudos to ChatGPT for this example book structure.

nginex’s picture

Version: 2.0.x-dev » 1.4.x-dev
Component: Documentation » Code
Assigned: Unassigned » nginex
Category: Support request » Feature request

nginex’s picture

Assigned: nginex » Unassigned
Status: Active » Needs review
nginex’s picture

Going to include this to a new release as it's based on latest changes from 1.4.x that are not yet released.

To test this, you just export all books node with drush or via UI with bulk action export content.

nginex’s picture

Status: Needs review » Reviewed & tested by the community

Please create new issues for any reported bugs or improvements as this goes to new release

nginex’s picture

Status: Reviewed & tested by the community » Fixed

This is now available in new release 1.4.14

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

jvdkolk’s picture

Super, much thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.