Jump to content

Recommended Posts

Posted

Hi!

Is there a way to give a user the permission to move pages (in the page tree) only for one template?
I just find a way to give the permissions to all templates.

Thanks!

Posted

Hi @tires

Probably you can hook Page::moveable

	public function init()
	{
		$this->addHookAfter('Page::moveable', $this, 'moveable');
	}

	public function moveable($event) {
		$page = $event->object;

		if ($page->template->name == 'test') {
			$event->return = true;
		}
	}

 

Posted

As long as the user has edit access for the template, you can use "Additional edit permissions and overrides" at Edit Template > Access:

2021-02-11_112752.png.20eff2a9cfa450eb58d2e29db0b97929.png

  • Like 2

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...