Home>Support>Page Builder: Can I prevent the editor from changing the layout?

Page Builder: Can I prevent the editor from changing the layout?

Hi,
I want to use page builder on a multi-site installation. I don’t want the editors to be allowed to change the pre-set layout.
For instance, They shouldn’t be able to modify the column width, change the background, etc.
I’ve not found in the documentation and forums information on this.
More generally, how can I limit the number of options within siteorigin page builder? (e.g. hide some menus, etc.)
Thank you for your answer.
Eric
(Note that I am using a home-made theme, in which I can add filters and hooks as necessary.)

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 7 years, 8 months ago Greg Priday
    Hi, I Work Here

    Hi Eric

    So the semi-good news is that this is mostly possible. The bad news is I can’t remember how it works well enough to explain it right now. It has something to do with using this filter: https://github.com/siteorigin/siteorigin-panels/blob/develop/tpl/metabox-panels.php#L5

    You’d need to work on that filter and return an array that looks something like the following.

    array(
    	'addRow' => false,
    	'editRow' => false,
    	'deleteRow' => false,
    	'moveRow' => false,
    	'addWidget' => false,
    	'editWidget' => true,
    	'deleteWidget' => false,
    	'moveWidget' => false,
    	'revertToEditor' => false,
    	'prebuilt' => false,
    );
    

    You’d just need to adjust that to suit your needs, and make sure you’re only filtering for certain users. Or else you wont be able to create any pages in the first place.

  2. 7 years, 8 months ago Eric Mathieu

    Hi Greg,
    Thanks for your input.
    I'll have a look at this filter.
    However, we've decided not to use SiteOrigin Page Builder as a first step,
    so that users are not confused and things stay simple. We have to consider users (editors) who may only connect few times a year to update a page.
    The interface has to be really straight forward for them.
    Thank you. I'll update this post when I have a technical solution.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More