thetuningspoon Posted June 10, 2014 Posted June 10, 2014 Is it possible to select a page by the person who created it? I tried find("createdUser.name=$userName") but that doesn't seem to work.
adrian Posted June 10, 2014 Posted June 10, 2014 You can do this: $userid = $users->get("$userName")->id; $ps = $pages->find("created_users_id=$userid"); 6
horst Posted June 10, 2014 Posted June 10, 2014 (edited) I'm not sure and haven't tested, but have you tried something like: pages->find("created_user_id=$userid") EDIT: Adrian wins! Edited June 10, 2014 by horst
3fingers Posted June 10, 2014 Posted June 10, 2014 Hey adrian, that "created_users_id" stands for a custom field or..? EDIT: Nevermind, found it in the cheatsheet
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