Jump to content

Selector for all site pages?


Recommended Posts

I'm trying to create a selector for find() that finds all pages in the site, except the hidden ones.

$matches = $pages->find("parent=/"); 

This works for all except a section I have with a "photos" page as the parent.

I use this find() to get the remaining pages.

$matches = $pages->find("parent=photos"); 

I tried several things to combine the two, but nothing worked.

Also why doesn't find("parent=/"); 

find the photo pages also?

I guess the photo pages are grandchildren of the root/home page, but is there a way to include them?

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