Hello there,
I have a template only to get a simple structure in my page tree. (for example: a category-site)
the sites from this template must be hidden... if they are not hidden, you can see them in my nav-menu! Now - my question:
Is there any way to set a permanent hidden-state to the template?
Why I need this:
...because there are some admin-noobs... I think they will forget to set the page hidden.
Thanks a lot.
Stefan
Oh man... thanks a lot. I forgot - I was logged in as admin. damn!
thats great. Your code works as admin, too!
Best Solution from Soma:
$result = $pages->find("has_parent!=2,id!=2|7,status<".Page::statusTrash.",include=all");
Thank you. Best regards
Stefan
hi @ all.
how can i get a list/array of all pages (recursiv)
- but without admin-pages
- incluing all sub-pages?
pages i won't get: for example:
Pages Add Page Page List Save Sort Edit Page Templates Fields Modules Setup Access Users Roles Permissions Edit pages Delete pages Move pages (change parent) View pages Sort child pages Change templates on pages Administer users (role must also have template edit access) User can update profile/password Lock or unlock a page
thanks a lot and regards.
stefan