There is 1 update.
 
 
Book Versions / cid:jira-generated-image-avatar-044f2492-ab0b-44cb-999c-73e784b811c2 BVERSION-11 Open

Add book page creation feature

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-0a28b892-3033-4378-a497-d30a3ee3e7c3 Changes by Raluca Stavro on 05/Nov/24 13:25
 
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.

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



After
When *a new version for the book* is created , if the user creates a new *versioned* page in the book (see https://jira.xwiki.org/ projects browse /BVERSION /issues/BVERSION - 7 12 ), 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.
The structure
 

Structure
of a book page is :

Book
* Versioned book page with no content
  |-- ** Teminal & hidden child page with content for version X
  |-- ** Teminal & hidden child page with content for version Y

The user should be able to choose what version of the book to be displayed
** . For that, a selector of book versions will be added in the UI . .
As a result, there will be a tree of pages in the UI, representing

OR

It should either select the associated versioned
* Unversioned book page with content or display inherited content. Also, the source of the content should be displayed.