Moving existing fields/behaviors in dexterity [duplicate]

随声附和 提交于 2019-12-23 12:30:12

问题


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

回答1:


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



来源:https://stackoverflow.com/questions/31163583/moving-existing-fields-behaviors-in-dexterity

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!