Manol Posted January 6, 2014 Posted January 6, 2014 Hello. I haven't developed a module yet but the time has come to get my hands dirty. I've been looking some modules ( PageListBetterLabels.module, PageListImageLabel.module) but couldn't figure out how to do what I need. As an example, I would like to hide all children from cities but berlin ( I'll have a user called berlin_mark and he'll be allowed to see just this page but not the other cities ). home --cities ----amsterdam ----new-york ----berlin ----london --other-things Thanks.
Martijn Geerts Posted January 8, 2014 Posted January 8, 2014 I'm not sure, but here's a try: On line 40: is getting $page, from there you could handle your logic. And if you decide to output nothing you could do a: $event->return = false; Please correct me when I'm wrong. 1
Soma Posted January 8, 2014 Posted January 8, 2014 http://lmgtfy.com/?q=processwire+hide+pages+in+admin First search result shows a thread, where you even liked my posts where I explain and show an example module of how it could be archived. So there's no way to do it without a mean hack. I'm still waiting for Ryan to implement something to make this easier and brought that up on github again. 2
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now