Pour rendre vos extensions compatibles avec les workspaces. Pour cela dans chaque extension:
1) modifier ext_tables.sql
Pour les tables de vos objets qui doivent être utilisés dans les workspaces il faut ajouter les champs suivants
t3ver_oid int(11)unsigned DEFAULT '0' NOT NULL, t3ver_id int(11)unsigned DEFAULT '0' NOT NULL, t3ver_label varchar(30) DEFAULT '' NOT NULL, t3ver_wsid int(11) DEFAULT '0' NOT NULL, t3ver_state tinyint(4) DEFAULT '0' NOT NULL, t3ver_stage tinyint(4) DEFAULT '0' NOT NULL, t3ver_count int(11) DEFAULT '0' NOT NULL, t3ver_tstamp int(11) DEFAULT '0' NOT NULL, t3_origuid int(11) DEFAULT '0' NOT NULL,
2) modifier ext_tables.php
Dans $TCA[« tx_mon_extension_objet »][« ctrl »] il faut ajouter les champs suivants pour chaque table.
"versioningWS"=> TRUE, "origUid"=>"t3_origuid",
"versioningWS_alwaysAllowLiveEdit" => TRUE,
Sinon, vous risquez d'avoir le message d'erreur suivant quand vous tentez de publier un élément dans le workspace live.
1: [newlog()] Could not be edited in offline workspace in the branch where found (failure state: ‘Online record was not in versionized branch!’). Auto-creation of version not allowed in workspace!
Laisser un commentaire