suntrop Posted May 2, 2017 Share Posted May 2, 2017 I have configured some template to be not movable, so the editors can't move them around. But actually I need to move them with the API. Is there some way to avoid the error Pages using template 'order' are not moveable Link to comment Share on other sites More sharing options...
BitPoet Posted May 2, 2017 Share Posted May 2, 2017 Untested, but it might be possible to change the template object's noMove property before and after moving the page: <?php $nomove = $page->template->noMove; $page->template->noMove = false; $page->of(false); $page->parent = $pages->get('/my/new/parent/'); $page->save(); $page->of(true); $page->template->noMove = $nomove; Link to comment Share on other sites More sharing options...
Robin S Posted May 2, 2017 Share Posted May 2, 2017 9 hours ago, suntrop said: I have configured some template to be not movable, so the editors can't move them around. But actually I need to move them with the API. You can revoke the "page-move" permission for a template per role: 1 Link to comment Share on other sites More sharing options...
suntrop Posted May 3, 2017 Author Share Posted May 3, 2017 Thanks both of you! Where do I find that option? I am using 3.0.42 and can't find that option. Link to comment Share on other sites More sharing options...
Robin S Posted May 3, 2017 Share Posted May 3, 2017 3 hours ago, suntrop said: Where do I find that option? Setup > Templates > [template name] > Access tab Link to comment Share on other sites More sharing options...
suntrop Posted May 4, 2017 Author Share Posted May 4, 2017 I don't have that. !? Link to comment Share on other sites More sharing options...
Robin S Posted May 4, 2017 Share Posted May 4, 2017 15 minutes ago, suntrop said: I don't have that. !? The role must have Edit permission for the template: page-sort and page-move are sub-permissions of the page-edit permission. Link to comment Share on other sites More sharing options...
WinnieB Posted October 6, 2019 Share Posted October 6, 2019 On PW 3.0.141, can anyone think of why as a logged-in Superuser with no visible Page Edit/Move restrictions on current page (let alone Templates, Pages, or any Parent Pages), I am getting a "You don't have permission to move pages using this parent" error in the Pages tree? Thanks. Link to comment Share on other sites More sharing options...
BitPoet Posted October 10, 2019 Share Posted October 10, 2019 On 10/7/2019 at 1:45 AM, WinnieB said: On PW 3.0.141, can anyone think of why as a logged-in Superuser with no visible Page Edit/Move restrictions on current page (let alone Templates, Pages, or any Parent Pages), I am getting a "You don't have permission to move pages using this parent" error in the Pages tree? Thanks. I've had some strange issues recently with pages that had a parent template restriction in the family settings and moving/creating them parent pages that in turn had a child template family restriction. Unfortunately, I didn't have time to investigate this further and just removed one of the restrictions to get things working again. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now