adrianmak Posted January 27, 2016 Share Posted January 27, 2016 I didn't find mentioned in api doc and I look up in the wire/core/Page.php but no success. Link to comment Share on other sites More sharing options...
adrian Posted January 27, 2016 Share Posted January 27, 2016 Here a link to a search for "StatusLocked" on the PW Github repo: https://github.com/ryancramerdesign/ProcessWire/search?utf8=%E2%9C%93&q=statuslocked&type=Code That should show you what you need. 2 Link to comment Share on other sites More sharing options...
justb3a Posted January 27, 2016 Share Posted January 27, 2016 $page->addStatus(Page::statusLocked); $page->removeStatus(Page::statusLocked); Have a look at the cheatsheet. 4 Link to comment Share on other sites More sharing options...
adrian Posted January 27, 2016 Share Posted January 27, 2016 $page->addStatus(Page::statusLocked); $page->removeStatus(Page::statusLocked); Have a look at the cheatsheet. True enough - I actually assumed it must have been an omission from the cheatsheet so didn't check! Link to comment Share on other sites More sharing options...
WillyC Posted January 27, 2016 Share Posted January 27, 2016 thises alos works for.me $page->removeStatus( 'locked' ); 2 Link to comment Share on other sites More sharing options...
horst Posted January 27, 2016 Share Posted January 27, 2016 Have a look at the cheatsheet. So true! 2 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