davo Posted June 23, 2014 Share Posted June 23, 2014 I'm using PAGE EDIT PER USER to control access to pages for editing. Is there and easy way to call all pages that the current user has editing access to? Something like $mypages = $pages->find("iseditable") I can see in the documentation a way to test the current page but nothing as a selector like this. Link to comment Share on other sites More sharing options...
davo Posted June 27, 2014 Author Share Posted June 27, 2014 Got there in the end I think; like this: foreach ($myeditpages as $myeditpage) { if($myeditpage->editable()) { $page->editor .="<P><a class='editpage-inline' href='{$myeditpage->url}'>View {$myeditpage->title} </a></p>";} ;} 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