4

How can move an existing field (IDublinCore.rights) into another fieldset, after a specific field - Without writing my own Behavior (a copy of IDublinCore)?

"Rights" fields should be appear after "image_caption" (own contenttype)

This isn't working

form.order_after(rights='image_caption')
bytecode77
  • 14,163
  • 30
  • 110
  • 141
user966660
  • 634
  • 1
  • 8
  • 20
  • 2
    I'm afraid this is by design not possible. two possible workarounds are described in http://stackoverflow.com/questions/8901304/moving-fields-between-fieldsets-on-dexterity – Mathias Jul 01 '15 at 14:23
  • Thank you, I saw the other question - but i hoped that in the last time, this have changed... – user966660 Jul 02 '15 at 07:48
  • The answers in the other question are not *quite* directly revelant. There is a much better answer for behavior fields in https://community.plone.org/t/moving-behavior-fields-to-different-fieldset/6219/ – T. Kim Nguyen Jan 09 '19 at 20:42

1 Answers1

2

How about using Jquery? (Since the fieldsets are using Jquery anyway)

For example to move Tags under Summary....

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

Note: I only tested this in Firebug's Script window...

Danimal
  • 1,208
  • 10
  • 21