edit

Add a link to edit the current element inline.

  • publish Set whether to auto-publish node after save.
see cancel, each, form, unknown
<ul do='notes'>
  <li do='each'>
    <r:link/> <r:edit>change name</r:edit>
  </li>
</ul>

<ul do='notes'>
  <li do='each'>
    <r:link/> <r:edit>change groups</r:edit>
  </li>
  <li do='form'>
    <input type='text' name='r_group'/>
    <input type='text' name='w_group'/>
    <input type='text' name='p_group'/>
  </li>
</ul>

If there exists a form in the current list context, the form is used for editing. Otherwise, the form is built from the attributes being shown in the ‘each’ method.

If you only need to edit a single attribute, like in the first example above it is easier to use the “edit=’true’” syntax of the show method.

You can use the “edit” tag inside a “form” to show the “cancel” button.