Jump to content

Recommended Posts

Posted
$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?

Posted

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.

  • Like 1
Posted

To get the ID of the module you need to 

$id = $modules->getModuleID("ProcessPageEdit");
echo $pages->get("process=$id")->title;
  • Like 3
Posted

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.

Posted

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.

Posted

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.

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
  • Recently Browsing   0 members

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