Jump to content

reset ->filter()


Recommended Posts


if i do

   $stuff = $page->all_list;


   echo $stuff // subset of all_list, all good

But, how do i get all_list again? (How do I reload all items)

   $stuff2 = $page->all_list; //returns filtered list = not good

thanks =)


Link to comment
Share on other sites


forgot to mention, $page->all_list; is a page list (page field), not child pages. So find doesn't seem to work

No other way to non-destructively filter a PageArray? Can I clone a PageArray?

Is there a way to force reload of the original items?


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

  • Create New...