#EDIT

#EDIT{name_of_the_field}: this tag, by itself, does nothing and returns nothing… But when coupled with the "crayons" plugin, it makes it possible to edit content on the public site if the current visitor is authorised to do so. In this case, it returns the names of the CSS classes which will be used by a jQuery script supplied by that plugin.

  1. <div class="#EDIT{champ}">#CHAMP</div>

Example

To be able to edit the "title" field:

  1. <h2[ class="(#EDIT{titre})"]>#TITRE</h2>
  2. <h2 class="#EDIT{titre} another_css_class">#TITRE</h2>

Download

Author Mark Baber Published : Updated : 13/06/10

Translations : English, français