Monday, October 15, 2012

Make Doclib action with a subset of properties for edit

Tested using the 'OnActionFormDialog' for editing properties ...

<action id=".." icon="..." type="javascript" label="...">
                <param name="formId">FORM-ID</param>
                <param name="function">onActionFormDialog</param>
                <param name="itemKind">node</param>
                <param name="itemId">{node.nodeRef}</param>
                <param name="mode">edit</param>
                <param name="destination">{node.nodeRef}</param>
             ...



Now you can specify a new form with id FORM-ID in your node-type form definition! Now this will not call an action anymore thou ... but will persist your property changes.