Jump to content

Can't get page by process


owzim
 Share

Recommended Posts

$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

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 :lol:

Have not needed this but great to keep in mind.

Link to comment
Share on other sites

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

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...