diff --git a/migrations/check_bg.php b/migrations/check_bg.php
index 2faede9..f160080 100644
--- a/migrations/check_bg.php
+++ b/migrations/check_bg.php
@@ -50,7 +50,13 @@ if ($cols === []) {
}
echo "\n=== 2) The record itself (uid $uid) ===\n";
-$row = $pdo->query("SELECT uid, pid, CType, deleted, hidden, sys_language_uid, l18n_parent, tx_vitec_bg_variant, tx_vitec_bg_image, tx_vitec_bg_size, tx_vitec_bg_position FROM tt_content WHERE uid = $uid")->fetch();
+// Column list built from section 1 rather than hard-coded, so every tx_vitec_bg_*
+// field added later shows up here without the script needing an edit.
+$select = array_merge(
+ ['uid', 'pid', 'CType', 'deleted', 'hidden', 'sys_language_uid', 'l18n_parent'],
+ array_column($cols, 'Field')
+);
+$row = $pdo->query('SELECT ' . implode(', ', $select) . " FROM tt_content WHERE uid = $uid")->fetch();
if (!$row) {
echo " no tt_content row with uid $uid\n";
} else {
diff --git a/packages/vitec/Configuration/TCA/Overrides/tt_content_vitec_shared.php b/packages/vitec/Configuration/TCA/Overrides/tt_content_vitec_shared.php
index ba18d7b..f80a6c7 100755
--- a/packages/vitec/Configuration/TCA/Overrides/tt_content_vitec_shared.php
+++ b/packages/vitec/Configuration/TCA/Overrides/tt_content_vitec_shared.php
@@ -125,15 +125,16 @@ use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
foreach (['top', 'bottom', 'left', 'right'] as $edge) {
$positionOffsets['tx_vitec_bg_pos_' . $edge] = [
'label' => $l . 'bg_pos.' . $edge,
+ 'description' => $l . 'bg_pos.description',
'displayCond' => 'FIELD:tx_vitec_bg_position:=:custom',
'config' => [
'type' => 'number',
'size' => 5,
'nullable' => true,
- 'range' => [
- 'lower' => 0,
- 'upper' => 100,
- ],
+ // No range on purpose: background-position accepts values below
+ // 0 and above 100, which is how you push an image partly out of
+ // its container. Capping at 0..100 would forbid exactly the
+ // layouts these free offsets exist for.
],
];
}
diff --git a/packages/vitec/Resources/Private/Language/locallang_containers.xlf b/packages/vitec/Resources/Private/Language/locallang_containers.xlf
index 4c5ab67..9f308d7 100755
--- a/packages/vitec/Resources/Private/Language/locallang_containers.xlf
+++ b/packages/vitec/Resources/Private/Language/locallang_containers.xlf
@@ -258,6 +258,9 @@
Right %
+
+ Distance from that edge, in percent. Leave empty to centre on this axis. Values below 0 and above 100 are allowed and push the image beyond the edge. Filling both ends of an axis is contradictory - the near edge wins (left over right, top over bottom).
+