- New extension fe_comment (Evomedien, framework-agnostic): floating page
feedback widget served from /api/fe-comment/widget.js, note pad in localStorage, submissions mailed via /api/fe-comment/submit with recipients from the extension configuration; classic sites get the script injected via AssetCollector when the jsonOutput setting is off. An enabled master switch serves the widget EMPTY when off (no 404, no console errors) and rejects submissions - the go-live kill switch, no front-end build change needed - URL swap finished: /_json prefix middleware, SPA fallback live with a dedicated root rule (REQUEST_FILENAME of / is a directory) and a query-string exception for the TYPO3 v14 install tool entry (?__typo3_install on the site root - the backend Settings/Environment modules depend on it); /api/ as a whole stays with TYPO3 - MailMessage::send() no longer exists in v14: fe_comment and the form EmailDelivery (latently broken since the core upgrade) now send through the Mailer service. Mail transport moved to SMTP against the local exim so delivery errors surface instead of bouncing into the blackhole - exim verifies the envelope sender, which therefore must be a routable existing address (transport config lives in the untracked settings.php) - Related-product card texts editable on the product record (table rebuilt with uid/pid, TCA + inline field, one-time migration script); shared RteCompare for the module badge and the CLI comparison - batch dry-run now reports 0 writes instead of flagging every richtext field - Workbook clarification cases executed: VisionIO-SD14, VisionSC-SD14 and both Diamond OG records imported (40 fields, live-verified); ArtioSign and ArtioView created hidden (uid 109/110) via create_artio_records.php - the product table has no sorting column; WallControl_10 mapping REVERTED and parked: the dry run revealed aetria-wallcontrol already carries its own agency workbook, which WallControl_10 would have overwritten. Manifest now 75 product / 24 family / 1 open
This commit is contained in:
1 parent
6db2234851
commit
f0b0694842
28 files changed
+1272
-54
No files matched your search
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* Create the ArtioSign and ArtioView product records (decision Olli
|
||||
* 2026-09-28, last two open manifest cases).
|
||||
*
|
||||
* Both arrive HIDDEN: the agency wrote full product workbooks, but neither
|
||||
* product exists in sitemap V2, so Olli publishes them deliberately, not an
|
||||
* import. Category: 76 "Aetria" - the home of their closest neighbour
|
||||
* Aetria WallControl - as a PROVISIONAL placement; moving them is one
|
||||
* checkbox in the backend. pid and sorting are taken from the existing
|
||||
* product records.
|
||||
*
|
||||
* Idempotent: a record whose slug already exists is skipped.
|
||||
*
|
||||
* Usage: php migrations/create_artio_records.php
|
||||
* then: vendor/bin/typo3 cache:flush
|
||||
*/
|
||||
|
||||
$root = null;
|
||||
$dir = __DIR__;
|
||||
for ($i = 0; $i < 5; $i++) {
|
||||
if (is_file($dir . '/config/system/settings.php')) { $root = $dir; break; }
|
||||
$dir = dirname($dir);
|
||||
}
|
||||
if ($root === null) { exit("Could not locate project root above " . __DIR__ . "\n"); }
|
||||
|
||||
$settings = require $root . '/config/system/settings.php';
|
||||
$db = $settings['DB']['Connections']['Default'];
|
||||
$pdo = new PDO(
|
||||
sprintf('mysql:host=%s;port=%s;dbname=%s;charset=utf8mb4', $db['host'] ?? 'localhost', $db['port'] ?? 3306, $db['dbname'] ?? ''),
|
||||
$db['user'] ?? '', $db['password'] ?? '',
|
||||
[PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC]
|
||||
);
|
||||
|
||||
const TABLE = 'tx_vitec_domain_model_product';
|
||||
const CATEGORY_UID = 76; // "Aetria" - provisional, see header
|
||||
|
||||
$products = [
|
||||
['title' => 'ArtioSign', 'slug' => 'artiosign'],
|
||||
['title' => 'ArtioView', 'slug' => 'artioview'],
|
||||
];
|
||||
|
||||
// The product table has NO sorting column (list order comes from the
|
||||
// category tree) - only the pid is taken from the existing records.
|
||||
$ref = $pdo->query('SELECT pid FROM ' . TABLE . ' WHERE deleted = 0 GROUP BY pid ORDER BY COUNT(*) DESC LIMIT 1')->fetch();
|
||||
if (!$ref) { exit("No existing product records to take the pid from.\n"); }
|
||||
$pid = (int)$ref['pid'];
|
||||
|
||||
$catName = $pdo->query('SELECT title FROM sys_category WHERE uid = ' . CATEGORY_UID . ' AND deleted = 0')->fetchColumn();
|
||||
if ($catName === false) { exit("Category " . CATEGORY_UID . " not found - adjust CATEGORY_UID.\n"); }
|
||||
|
||||
foreach ($products as $product) {
|
||||
$exists = $pdo->prepare('SELECT uid FROM ' . TABLE . ' WHERE slug = ? AND deleted = 0');
|
||||
$exists->execute([$product['slug']]);
|
||||
if (($uid = $exists->fetchColumn()) !== false) {
|
||||
echo $product['title'] . ": exists already (uid $uid) - skipped.\n";
|
||||
continue;
|
||||
}
|
||||
|
||||
$insert = $pdo->prepare('INSERT INTO ' . TABLE . ' (pid, tstamp, crdate, hidden, title, slug, categories)
|
||||
VALUES (?, ?, ?, 1, ?, ?, 1)');
|
||||
$insert->execute([$pid, time(), time(), $product['title'], $product['slug']]);
|
||||
$uid = (int)$pdo->lastInsertId();
|
||||
|
||||
$mm = $pdo->prepare('INSERT INTO sys_category_record_mm (uid_local, uid_foreign, tablenames, fieldname, sorting, sorting_foreign)
|
||||
VALUES (?, ?, ?, ?, 0, 1)');
|
||||
$mm->execute([CATEGORY_UID, $uid, TABLE, 'categories']);
|
||||
|
||||
echo $product['title'] . ": created uid $uid (pid $pid, HIDDEN, category $catName).\n";
|
||||
}
|
||||
|
||||
echo "Done. Next: vendor/bin/typo3 cache:flush\n";
|
||||
Reference in new issue
Block a user