Issue Bug Under Review Orphaned

#102369Hide "Add content"-button for localized columns on disabled mod.web_layout.localization.enableCopy

Ayke Halder 11/13/23, 19:31 updated 04/22/26, 06:25

Description

tl;dr

The “Add content”-button for localized columns should be hidden if mod.web_layout.localization.enableCopy is disabled.

Steps to reproduce

1. Page TSconfig:

mod.web_layout {
  localization {
    // Only "translate" is enabled --> translation-mode "connected"
    enableCopy = 0
    enableTranslate = 1
  }
}

2. Module “Web: Page”: Editor can add new content

clipboard-202311132009-avgvc.png

  • No translation-mode visible.
  • Editor should not be able to add new content.

3. Add new CE:

clipboard-202311132011-t26jq.png

  • This sets translation-mode to “Free Mode” (see blue badge)
  • And there are many “Add content”-buttons visible…

4. Click on “Translate”:

clipboard-202311132014-gzt8o.png

  • “Can’t translate” caused by page is in “Free Mode” but only “Connected Mode” is allowed.

What should happen instead

1. Page TSconfig:

mod.web_layout {
  localization {
    // Only "translate" is enabled --> translation-mode "connected"
    enableCopy = 0
    enableTranslate = 1
  }
}

2. Module “Web: Page”: Editor can’t add content:

clipboard-202311132021-dmzx6.png

  • No “Add content”-button visible
  • Translation mode “Connected Mode” already visible (see blue badge)

3. Click on “Translate” (already working):

clipboard-202311132023-mfsdl.png

  • Wizards jumps directly to step 3 of 4 (already working).

4. Editor sees records to translate (already working):

clipboard-202311132025-mqp8i.png

  • Still no “Add content”-buttons visible (already working).
  • Translation mode “Connected Mode” visible (see blue badge; already working).

Reviews 1

History 15