plonedexterity

Moving existing fields/behaviors in dexterity


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')

Solution

  • 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...