-
Templating and Integration Guide
- Part 1: Concepts
- Part 2: Modules
- Part 3: Templates and Studio
- Part 4: Content Definitions and Views
- Part 5: Advanced Techniques
- Part 6: Setting up an integration environment
- Part 7: Step by step integration
- Further reading and resources
Form data parameters
The data submitted in the form uses reserved parameter names to perform their magic. We list here the most important parameters, but please refer to the REST API reference documentation (http://www.jahia.com/community/documentation/jahiapedia/jahia-modules/rest.html) for an exhaustive list.
The parameters are:
- jcrNodeType : type of node to be created
- jcrNodeName : name of node to be created
- jcrNodeNameProperty : by default, if JCRnodeName is not set we use jcr:title to define the node name. This parameter allows changing the property used to define the node name.
- jcrNewNodeOutputFormat : Output format consequent to form post (html, etc ..)
- jcrRedirectTo : URL to be redirected to after the form post
- jcrRedirectResponseCode: response code to be redirected after form post (useful for json for instance)
- jcrMethodToCall : method to use (post,put,delete)
- jcrAutoCheckin: forces a new version of the created content
- jcrCaptcha: <input type="text" name="captcha"/> name of the captcha field
- jcrTargetDirectory: for a file upload, this is the target directory
- jcrTargetName : name of the uploaded file
- jcrNormalizeNodeName: (boolean) uses the normalization method for node name creation
- jcrVersion: (boolean) if true creates a new file version, if not replaces the current file
- jcrSubmit:reserved
- jcrAutoAssignRole: name of the role associated to created node
- jcrAlias: reserved
- jcrParentType: type of created parent nodes if they do not exist (by default jnt:contentList)
- jcrReturnContentType: Set to “json” if you want the Content-Type header to be set to application/json otherwise it will default to the default response content-type (usually text/html)
- jcrResourceID: specify the identifier of the currently displayed node to allow the cache system to correctly redisplay the form in case of errors
- jcr:mixinTypes : allows to specify mixins to add to the node being created (must be passed as a multi-valued form data parameter)
- jcrRemoveMixin: removes the specified “mixin” on a node
- jcrCookieName: name of the cookie for this form, set by the server when the form has been successfully submitted (only when using PUT)
- jcrCookieValue: value of the cookie for this form, set by the server
- jcrCookiePath : path of the cookie for this form, set by the server

