#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.

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


To be able to edit the "title" field:

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

Author Mark Baber Published : Updated : 12/03/23

Translations : English, français, Nederlands