adrianmak Posted January 27, 2016 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.
adrian Posted January 27, 2016 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
justb3a Posted January 27, 2016 Posted January 27, 2016 $page->addStatus(Page::statusLocked); $page->removeStatus(Page::statusLocked); Have a look at the cheatsheet. 4
adrian Posted January 27, 2016 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!
WillyC Posted January 27, 2016 Posted January 27, 2016 thises alos works for.me $page->removeStatus( 'locked' ); 2
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