尝试在不允许此表的页面上插入记录 [英] Attempt to insert record on page where this table is not allowed
问题描述
我在尝试从扩展创建新记录时收到上述消息(尝试在不允许此表的页面上插入记录).
I get the message above (Attempt to insert record on page where this table is not allowed) when trying to create a new record from an extension.
- 我尝试在其中创建记录的页面"是系统文件夹而不是页面
t3lib_extMgm::allowTableOnStandardPages('user_myext_categories');
已设置- 本页已有
categories
的记录 - TCA 中没有
'type' =>
定义,但该表本身已在 TCA 中注册,就像此扩展中的其他表一样(并且它们可以工作)
- The "page" i try to create the record in is a sysfolder and not a page
t3lib_extMgm::allowTableOnStandardPages('user_myext_categories');
is set- there are already records of
categories
on this page - there is no
'type' =>
definition in TCA, but the table itself is registered in TCA like the other tables from this extension (and they work)
对此有任何提示吗?
推荐答案
也许这种类型的表的创建是通过 Page-TS-Config 停用的?通过 mod.web_list.allowedNewTables/deniedNewTables
可以禁用新表的创建.
Perhaps the creation of tables of this type is deactivated via Page-TS-Config? Via mod.web_list.allowedNewTables / deniedNewTables
it is possible to disable the creation of new tables.
您需要检查根行中的每个 Page-TS-Config 或查看信息模块.
You need to check each Page-TS-Config in the rootline or have a look at the info module.
也许尝试创建一个新的根"页面并将您的表添加到那里.如果可行,那就是 Page-TS-Config 配置:)
Perhaps try to create a new "root" page and add your table there. If that works, it is a Page-TS-Config configuration:)
这篇关于尝试在不允许此表的页面上插入记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!