Skip to the content
Documentation

HTML form element names

No ratings yet

A list with the names for the HTML form elements for the different view actions and their meaning would be very useful.
For example, to move a node, you can use these names:
MoveNodeAction, must be present to trigger the action
ContentNodeID, the node id of the node to move
optional:
NewParentNode, the node id of the new parent node, if not present the user will have to browse for the new parent node
ViewMode, the node's view mode to redirect to, if not present 'full'
ContentObjectLanguageCode, the object's language to redirect to, if not present the default language

Comments (3 historical)

Written by readers of the earlier documentation sites, kept as they were.

  1. Re: HTML form element names

    Samuel Sauder ·

    From my experience....
    Edit needs ContentObjectID as a hidden form field like this

                         <form method="post" action="main/content/action/">                         <input type="hidden" name="ContentObjectID" value="{$node.object.id}" />                         <input class="button" type="submit" name="EditButton" value="{'Edit'|i18n('design/standard/node/view')}" />                     </form>

    Create needs ClassIdentifier and NodeID

                      <input type="hidden" name="ClassIdentifier" value="my_custom_class" />                  <input type="hidden" name="NodeID" value="{$node.node_id}" />
  2. Re: HTML form element names

    Samuel Sauder ·

    From my experience....
    Edit needs ContentObjectID as a hidden form field like this (add your own lt and gt html markers)

                         form method="post" action="main/content/action/">                         input type="hidden" name="ContentObjectID" value="{$node.object.id}" />                         input class="button" type="submit" name="EditButton" value="{'Edit'|i18n('design/standard/node/view')}" />                     /form>

    Create needs ClassIdentifier and NodeID

                      input type="hidden" name="ClassIdentifier" value="my_custom_class" />                  input type="hidden" name="NodeID" value="{$node.node_id}" />
    1. Re: Re: HTML form element names

      P. Renaud ·

      I post this here because the information is unfoundable on eZ, and is only available in the "Exponential basics" book... and is wrong.
      After editing an object, you can redirect the user to a specific page. To do so, add the following in your template edit form :

      <form>...<input type="hidden" name="RedirectURIAfterPublish" value="url_to_redirect_to" />...</form>