Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1352095

    Hi,

    We’ve built a school website with Enfold which will have a number of users coming in with various assigned roles and capabilities. While we need them to be able to load in basic page templates, we also know they’ll get all excited and mess up the page layouts if we let them. How can we lock down the layout editor but retain the ability for them to load in a template?

    Many thanks,

    Jon.

    • This topic was modified 2 years, 6 months ago by kops.
    #1352146

    Hey kops,

    Thank you for the inquiry.

    In the Enfold > Layout Builder panel, there is the Lock advanced layout builder option, which prevents anyone who is not an administrator to adjust the layout of an existing page, but everyone who can edit that entry will still be able to edit the content of the existing elements. You nay need to use a third party membership plugin if you need to specify more rules and restrictions.

    Best regards,
    Ismael

    #1352161

    Hi Ismael,

    Thanks for the reply. I’m not sure it’s a membership plugin we need. We know we can lock the layout editor for non admins but we need a way to still show the ‘TEMPLATES” button so they can still load in a template.

    Thanks.

    #1352236

    Hi,

    Thank you for the update.

    Once the ALB is locked, user who is not an admin will not be able to use the templates option, but we can modify the enfold/config-templatebuilder/avia-template-builder/php/class-save-buildertemplate.php file to enable it back. You have to remove the following code around line 29 inside the __construct function.

    if( ! isset( $_REQUEST['avia_export'] ) )
    			{
    				if( $this->builder->disable_drag_drop == true )
    				{
    					return;
    				}
    			}
    

    Best regards,
    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.