There is 1 update.
 
 
Book Versions / cid:jira-generated-image-avatar-97508ad9-3b6e-4b7a-89fb-2ff20dc83c94 BVERSION-11 Open

Add book page creation feature

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-1edad349-b97e-4e77-9e13-9914d3acc5f5 Changes by Raluca Stavro on 05/Nov/24 13:49
 
Description: Add the functionality of creating a book page.
Book page creation is allowed in the master book only.

A page in the master book can be *versioned* (https://jira.xwiki.org/browse/BVERSION-2) or *unversioned* (https://jira.xwiki.org/browse/BVERSION-7).

When creating a book page, the user must choose if the page is versioned or unversioned.
When editing a book page, the user can switch from versioned to unversioned and the other way around. When switching from unversioned to versioned, the content of that page will be associated with the latest/active book version.

When *a new version for the book* is created (see https://jira.xwiki.org/browse/BVERSION-
12 1 ), the active version changes and it becomes the latest version.
Therefore, when the user creates a new *versioned* page in the book, or the user goes on an existing *versioned* page in edit mode, *a new hidden and terminal child page* will be created at save for that version.

A versioned page in the master book will have multiple associated contents, stored as hidden and terminal child pages that represent, individually, the versioned contents of the current book page.

On the other hand, if the page is set to be {*}unversioned{*}, no child page is created at save, but the content is kept on the page itself.

 

Structure of a book page :
* Versioned book page with no content
** Teminal & hidden child page with content for version X
** Teminal & hidden child page with content for version Y
** ...

OR
* Unversioned book page with content