小编And*_*ndy的帖子

如何在Plone添加/编辑表单中隐藏字段集(选项卡)

我在dexterity内容类型中有一些代码,如下所示:

form.fieldset(
    'transitionsLog',
    label=_(u"Transitions Log"),
    fields=['t_log']
)
form.mode(t_log='hidden')
t_log = schema.TextLine(
    title=_(u'Transitions log'),
)
Run Code Online (Sandbox Code Playgroud)

在添加/编辑表单中,字段t_log隐藏但字段集选项卡"转换日志"仍显示在表单中,如上所示... 在此输入图像描述

我不知道在添加/编辑表单中隐藏"过渡日志"选项卡,

我能怎么做 ?

plone fieldset dexterity z3c.form

5
推荐指数
1
解决办法
383
查看次数

标签 统计

dexterity ×1

fieldset ×1

plone ×1

z3c.form ×1