Plon injection behavior field after description field

I am trying to enter a field from a behavior immediately after the description, in front of its own content fields (fields not related to the behavior).

form.order_after(myfield = 'IBasic.description')

not working - the field is still displayed after the fields with no behavior.

form.order_before(myfield = '*') 

works, but, of course, completely puts the box at the top.

form.order_before(myfield = '*')
form.order_after(myfield = 'IBasic.description')

the field is still at the top.

What did I miss?

form.order_before(myfield = 'first_field_from_ctype')

works, but in the nature of things, content types have different fields.

plone.app.dexterity-1.2.1

plone.dexterity-1.1.2

plone 4.2b2

+3
source share
1 answer

The field descriptionis in behavior IDublinCore, so the correct code is:

form.order_after(myfield = 'IDublinCore.description')
+1
source

All Articles