Search in the Documentation:

Principles

Any piece of content in Jahia can be created (POST), modified (PUT) or deleted (DELETE) using simple HTTP forms.

First let’s look at the basic setup of a form operation on Jahia content:

<form action="ACTION">
    <input/>
</form>

ACTION may be of two types:

  • A path (/sites/ACME/home/page)
    • PUT and DELETE methods: modify or delete the node that matches the path
    • POST method: 
      • If the node doesn’t exist: adds a node matching the path, if parents don’t exists, they are also created. The form data is then used to populate the properties of the node.
      • If the node exists: the node is updated with the data submitted in the form
      • If the action ends with /*: a node will be created, named after its associated type (specified in the form data).
  • An action (/sites/ACME/home.action.do)
    • POST method: executes the action specified in the URL