Jump to content

reset ->filter()


joe_g
 Share

Recommended Posts

hi,

if i do

   $stuff = $page->all_list;

   $stuff->filter('parent.name!=thing')

   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 =)

J

Link to comment
Share on other sites

thanks,

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?

J

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

×
×
  • Create New...