There are 3 updates, 2 comments.
 
 
Book Versions / cid:jira-generated-image-avatar-6742a13c-96ce-4e6c-a2f5-f49951b3e692 BVERSION-64 Closed

Display translated titles dinamicaly for pages

 
View issue   ยท   Add comment
 

3 updates

 
cid:jira-generated-image-avatar-e215a217-5d16-4d6d-b244-e8f7caa55db4 Changes by Raluca Stavro on 09/Jan/25 12:29
 
Fix Version: 1.0
Resolution: Fixed
Status: Reopened Closed
 
 

2 comments

 
cid:jira-generated-image-avatar-e215a217-5d16-4d6d-b244-e8f7caa55db4 Raluca Stavro on 09/Jan/25 12:33
 
I just committed a fix for displaying the translated title in view mode.

In edit mode, though, the user will see some velocity content in the title field.

The fix for displaying correctly the title in edit mode is not that simple.

1. In edit mode, one solution would be to replace the title dynamically with JavaScript, but for example, the inline editor feature generates multiple update events on the DOM and the translated title is loaded with a visible delay.

2. Another solution would be to hide the title field in edit mode if the page is detected as being translated.

3. Another solution would be to use sheets for book pages and for versioned content pages. The downside here is the fact that the UI of the page must be defined in the sheet (displaying the title, the content), rather that relying on the standard UI.
 
 
cid:jira-generated-image-avatar-e215a217-5d16-4d6d-b244-e8f7caa55db4 Raluca Stavro on 09/Jan/25 12:35
 
I just committed a fix for displaying the translated title in view mode.

In edit mode, though, the user will see some velocity content in the title field.
Opened [BVERSION-79|https://jira.xwiki.org/browse/BVERSION-79] for handling the title display in edit mode.