Jump to content

Select pages by author


rusjoan
 Share

Recommended Posts

It's so strange that I can't select pages like this:

template=foo, createdUser=1018

It gives such error:

Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'pages.createdUser' in 'where clause'' in ...

My suggestion is in: error causes because of selector engine allows to select by createdUser, but this is a service field and it doesn't exist in DB.

Link to comment
Share on other sites

Now googled same topic: https://processwire.com/talk/topic/4655-find-pages-by-createduser/

So I decided to try created_users_id=.. and it works!

OK, then now another question: where is official information about this behavior?

I'm sure that PW-novices should know about these nuances from API doc but not from self-searches :)

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...