owzim Posted October 23, 2014 Share Posted October 23, 2014 $pages->get("process=ProcessHome, include=all"); // returns NullPage I also tried adding check_access=0 and other Process-names $pages->get("process=ProcessPageEdit, include=all, check_access=0"); // returns NullPage Why is it not working? It should, shouldn't it? Link to comment Share on other sites More sharing options...
SiNNuT Posted October 23, 2014 Share Posted October 23, 2014 Could you try getting the process module by its id? For ProcessHome: $pages->get("template=admin, process=87, include=all"); I suspect you have to get the process by id, not sure though. 1 Link to comment Share on other sites More sharing options...
apeisa Posted October 23, 2014 Share Posted October 23, 2014 By id, or usually using the object ($modules->get("ProcessHome")). 2 Link to comment Share on other sites More sharing options...
Soma Posted October 23, 2014 Share Posted October 23, 2014 To get the ID of the module you need to $id = $modules->getModuleID("ProcessPageEdit"); echo $pages->get("process=$id")->title; 3 Link to comment Share on other sites More sharing options...
SiNNuT Posted October 23, 2014 Share Posted October 23, 2014 Great, was just digging through the modules class for some deeper understanding. So for a selector on the 'process' field (field_process) you need to pass the process module id. Which you can get by feeding the module classname to $modules->getModuleID("ModuleClassName"); Which is of course better than look it up manually and hard-coding it like i did Have not needed this but great to keep in mind. Link to comment Share on other sites More sharing options...
owzim Posted October 24, 2014 Author Share Posted October 24, 2014 Thanks guys, I was hoping for ONE selector, then I was thinking about the new nested selectors but those only work with pages. It should be unified in my opinion. That should do it for now though. Link to comment Share on other sites More sharing options...
SiNNuT Posted October 24, 2014 Share Posted October 24, 2014 Thanks guys, I was hoping for ONE selector, then I was thinking about the new nested selectors but those only work with pages. It should be unified in my opinion. .... I don't think the process field (of type FieldtypeModule) is used that often in selectors. This is actually the first time i see a question about it in the forum. When it's used the above works perfectly fine. Link to comment Share on other sites More sharing options...
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