Hi,

I'm using Panels on my site and found no way to expose the workbench access field in my node forms, so I created a simple ctools plugin that takes the node_form as the context and exposes the workbench access field on the form. I'm just wondering if it's any useful for you. Including it in the module is probably not the best idea because it adds a dependency towards ctools, but at the same time it could be useful for sites that make extensive use of panels.

I've got the code if you need it, let me know.

Rob

CommentFileSizeAuthor
#4 workbench_access_panels.patch1.79 KBrvarkonyi

Comments

agentrickard’s picture

We can wrap the code in an IF / conditional loader, so a patch is welcome.

In the -dev version , you can use native taxonomy / menu fields for access control, so this approach wouldn't be necessary.

rvarkonyi’s picture

Don't you think that a separate sub-module would be cleaner and more maintainable?

agentrickard’s picture

It depends on how complex the code is. Shouldn't we be able to use Ctools plugin model?

rvarkonyi’s picture

StatusFileSize
new1.79 KB

I think this should work

agentrickard’s picture

Status: Active » Needs review

This is perfectly acceptable to maintain within this module. Thanks.

Status: Needs review » Needs work

The last submitted patch, workbench_access_panels.patch, failed testing.

Taxoman’s picture

Version: 7.x-1.0 » 7.x-1.x-dev