Jump to content

Recommended Posts

Posted

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.

Posted

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>";}

;}

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...