我试图在描述之后、内容类型自己的字段(非基于行为的字段)之前直接从行为中注入一个字段。
form.order_after(myfield = 'IBasic.description')不起作用-该字段仍显示在非行为字段之后。
form.order_before(myfield = '*') 有效,但当然会将该字段完全放在首位。
form.order_before(myfield = '*')
form.order_after(myfield = 'IBasic.description')这个领域仍然位居榜首。
我错过了什么?
form.order_before(myfield = 'first_field_from_ctype')作品,但在事物的本质上,内容类型有不同的字段。
plone.app.dexterity-1.2.1
plone.dexterity-1.1.2
plone 4.2b2
发布于 2015-06-17 23:40:04
description字段采用IDublinCore行为,因此正确的代码为:
form.order_after(myfield = 'IDublinCore.description')https://stackoverflow.com/questions/10213510
复制相似问题