zervis Posted January 4, 2017 Share Posted January 4, 2017 Hi there, I'm using FindMany to find pages ant it works really good, but I'm building social portal and I wanted to use it also for users, unfortunatelly it works only on admin (superuser) account. Users have role "user". I'm a little bit confused why it doesn't work on user account (no problem with pages, only users). Any idea? Link to comment Share on other sites More sharing options...
godmok Posted January 5, 2017 Share Posted January 5, 2017 Hi @zervis, you could try $pages->findMany("template=user"); or $pages->findMany("role=user"). I tested this with normal PW users and $pages->find(), but it should work with findMany, too. Another way could be: $pages->find("template=user", ["lazy" => true]) see here for options, but I didn't tested that. 3 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