Moving Existing Fields / Dexterity Behaviors

How can I transfer an existing field (IDublinCore.rights) to another field, after a certain field - Without writing my own behavior (copy of IDublinCore)?

"Rights" should appear after "image_caption" (native content)

This does not work

form.order_after(rights='image_caption') 
+4
source share
1 answer

How about using jQuery? (Since field sets use jquery anyway)

For example, to move tags in the Summary section ....

 $('body.template-edit.portaltype-document #formfield-form-widgets-IDublinCore-subjects').insertAfter('#formfield-form-widgets-IDublinCore-description') 

Note. I tested this only in the Firebug Script window ...

+2
source

Source: https://habr.com/ru/post/1258358/


All Articles