Jump to content

Recommended Posts

Posted

I couldn't find an answer to this but is it possible to use ->get() (to retrieve one page) that's a repeater page (i.e hidden). I wasn't sure if you could add "include=hidden" to a ->get().

Thanks!

Posted (edited)

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
Posted

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;

 

  • Like 3
Posted
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.

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