Jump to content

Include=hidden in a ->get()


a-ok
 Share

Recommended Posts

get already assumes an include=all (that includes hidden). 

Quote

Note that $pages->get("..."); is not subject to this behavior (or access control) and "include=all" is assumed. This is because requesting a single page is a very specific request, and not typically used for generating navigation. 

http://processwire.com/api/selectors/#access_control

Edited by kongondo
Link to comment
Share on other sites

1 minute ago, kongondo said:

Repeater rows pages do not have a title field :)....,hence you not getting anything back. If you did the below, you should see something like ' 1482226910-677-1 '


$test = $pages->get(1156);
echo $test->name;

 

OH MY GOD :o What a fail.

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