Intraref pages (Link pages between different books)

Summary

Introduce the ability to link to pages that belong to a different book. This feature would allow users to reference existing pages across books while ensuring updates are synchronized and editing is restricted on the linked reference.


Frontend Requirements

  1. Advanced Page Creation Form:
    • Secondary or context menu click on the "Create Page" button should provide an option to open an advanced page creation form.
    • This form should include:
      • An option to create a page as a link from an existing page in another book.
      • A field for selecting or searching the source page to link to.
  2. Editing Restrictions:
    • Linked pages should display content from the source page
    • Users should not be allowed to edit the content of the linked page.
  3. Dynamic Updates:
    • Content updates made to the original page in the source book should automatically propagate to all linked references.

Backend Requirements

  1. Database:
    • Introduce a join column to manage the relationship between linked pages and their source pages.
  2. Syncing Mechanism:
    • Implement a process to ensure that changes to the original page are reflected in the linked references in real time.
  3. Editing Restrictions:
    • Add backend safeguards to enforce read-only behavior on linked pages.
    • Remark: I opted against safeguards for inserting new snips on reference pages as having annotations on a linked page could be useful in the future. Editing tools will not be shown on the frontend for now which kinda enforces the same behavior.
Edited by Sebastian Bernd Mohr