qbus / content-password
TYPO3 内容密码
1.0.2
2023-06-09 13:10 UTC
Requires
- b13/container: ^1.0 || ^2.0
- typo3/cms-core: ^11.4
README
从 v0.2.0 迁移到 v1.0.0(EXT:gridelements 到 EXT:container)
从 v1.0.0 开始,此扩展仅支持 EXT:container,因此内容元素必须从之前的 gridelements 数据结构迁移。
alter table tt_content add column if not exists tx_container_parent int(11) DEFAULT '0' NOT NULL;
update tt_content set CType = 'contentpassword_container' where CType = 'gridelements_pi1' and tx_gridelements_backend_layout = 'content_password';
update tt_content A set colPos = 200 + tx_gridelements_columns, tx_container_parent = (select l18n_parent from tt_content where uid = A.tx_gridelements_container limit 1) where colPos = -1 and l18n_parent != 0 and tx_gridelements_container in (select uid from tt_content where CType = 'contentpassword_container');
update tt_content set colPos = 200 + tx_gridelements_columns, tx_container_parent = tx_gridelements_container where colPos = -1 and l18n_parent = 0 and tx_gridelements_container in (select uid from tt_content where CType = 'contentpassword_container');
-- Opinionated migration for v0.2.0 compat if you used a fluid_styled_content compatible header via
-- tt_content.gridelements_pi1.20.10.setup.content_password.preCObject =< lib.contentElement
update tt_content set header_layout = 100, frame_class = 'none', sectionIndex = 0 where CType = 'contentpassword_container';