Skip to content

evoYTLock: first steps

What it does, in one line

A locked user can change the content of builder pages (text, images, links). They cannot change the structure or the styles. The check happens on the server when the page is saved; it does not rely on hiding buttons.

Lock a group

  1. In Joomla, create a group for your client’s users (for example, one under Registered) and add whoever should be limited. Give it the edit permissions the builder needs.
  2. Open System → Plugins → System - evoYTLock.
  3. In Locked groups, choose that group and save.

Settings of the System - evoYTLock plugin in Joomla, with the list of locked groups and what happens when they try to change stylesSettings of the System - evoYTLock plugin in Joomla, with the list of locked groups and what happens when they try to change styles

Three rules to keep in mind:

  • Direct membership counts. A user is locked if they are themselves a member of the chosen group; being in a subgroup is not enough.
  • Super users are never locked, even if they sit in a locked group. That is how you get around the lock: use a super user to administer and a member of the group to test.
  • With no groups chosen, the plugin locks nobody.

What a locked user can and cannot do

CanCannot
Change text, images, links and other content properties of elementsAdd, remove, move or change the type of elements, rows, columns or sections
Save the page as usualChange element styles and settings (by default the save is rejected and they are told)
Edit the layout of builder modules, under the same rules as a pageChange the dynamic content of an element
Edit pages that have no builder layout as normalGive a layout to a page that has none, or take it away (can be allowed)
Read everything they could already readSave theme settings, styles, builder templates, library, import or clear the cache

What counts as content is configurable. See settings.

What the locked user sees

  • In the YOOtheme customizer, the sections for site layout, styles, settings, builder templates and menus disappear. This is an interface aid; what actually stops the changes is the server.
  • On the builder canvas every button is still there (move, delete, add). evoYTLock does not hide them. If the user uses one and saves, the server rejects the save with a message.
  • That message says what happened, how many changes were not allowed, the names of up to five properties touched (never the page content) and what to do: undo those changes and save again.

Open a free zone

A free zone is an element inside which the locked user can add, remove, move and style things. It suits, for example, a news section. The rest of the page stays closed.

  1. Open the page in the builder with a user who is not locked.
  2. Select the element (a section, a grid…) and open its Lock tab, which sits just before Advanced. Only elements that have an Advanced tab get it.
  3. In Zone, choose Free zone. If the site language is es_ES the editor shows Spanish labels instead: tab Bloqueo, field Zona, option Zona libre.
  4. Save the page.

With evoMCP you can do the same with yootheme_update_node_props, setting the evoytlock_zone property to free.

The marked element itself stays locked, and changing the mark counts as changing a style: a locked user cannot open a zone for themselves.

Test it

  1. Log in as a member of the locked group, open a builder page and change some text. It should save.
  2. Change a margin or a colour on an element and save. You should get the warning and nothing should be saved.
  3. Add or delete an element and save. You should get the warning.
  4. Try to open the theme customizer: the layout sections should not be there.

If something does not behave as you expect, see the FAQ.