Closed (fixed)
Project:
Workflow
Version:
7.x-2.5
Component:
Workflow Node API
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Apr 2012 at 01:14 UTC
Updated:
9 Nov 2015 at 15:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Patribus commentedI'm also very interesed in having workflow fields available in panels!
Comment #2
Patribus commentedstill no reaction? :-(
man, i need this feature so much!
cheers
Comment #3
videographics commentedOf course I agree but go easy... It looks like Bastlynn is the only one doing anything with this module at the moment. I expect she'll need some help if the queue is going to get more attention any quicker than it is.
Realistically, for now, I'm just grateful we have a port of this for 7. For a while there I was getting a bit worried we'd never see it. It's a big part of a lot of my site workflows.
Comment #4
Francis47 commentedThis issue can be resolved by inserting the "General Form" - It has the help text: "Everything in the form that is not displayed by other content."
Its far from optimal to have the Workflow form grouped along with "Everything in the form that is not displayed by other content.", but its better than not having the Workflow form - My humble opinion.
I'll look forward to a solution and live with the above until then.
Comment #5
videographics commentedfrancis47, yes, that IS the current workaround but, as you say, it's far from optimal. Thanks for pointing that out to those who might not know that.
To clarify... The intention of this post is to identify a need for independent control over the Workflow form elements within Panels.
Comment #6
joel_osc commentedHere is a patch which adds this functionality, seems to work for me so we'll let the community try it. Cheers.
Comment #7
socialnicheguru commentedwhich file does this patch too
Comment #8
joel_osc commentedThe patch creates new files which define the ctools plugin. FYI - there is likely a bit more work to be done on this patch to add a 'view state' widget, but I have not had time to write it yet. I just used views (content pane) for the time being.
Comment #9
nancydruSo, is this "Needs review" or "Needs work?"
Comment #10
nancydru"Cannot apply binary patch to 'plugins/content/types/icon_node_form.png' without full index line"
Comment #11
joel_osc commentedSorry for the delay, this one fell off the radar a bit. Here is a patch rolled against the latest dev version.
Comment #12
joel_osc commentedSetting status to needs review. Input also welcome.
Comment #13
nancydruThanks for the patch. How can I test this?
Comment #14
joel_osc commentedYour welcome! Sorry, I should have included the steps to test this before.
To test:
0. enable panels, ctools, page manager and of course workflow with the patch
1. enable the 'node_edit' override in page manager (admin/structure/pages)
2. edit the 'node_edit' override
3. you may need to create a variant or edit the one that is there already
4. under 'content' select one of the gears in a region and choose 'Add content'
5. under the 'Form content' tab there should be an element called 'workflow', select it and save it to the form.
6. now edit a node with workflow enabled and you should see the workflow state selector in the region where you added it
if you want to use a distro with all the ctools, panels, etc. set-up already you can use this one: http://drupal.org/project/wet - it is a cool one that we have worked with the Government of Canada on building.
I should note that it already possible to add the workflow form to the node edit page override without this module, however it is a bit awkward from a usability perspective because there is an update button on the edit form. Rather than do form_alters to remove the update button I thought it might be easier to add this small plugin.
Cheers.
Comment #15
nancydruMarked as duplicate: #1934780: Error when new node form is displayed on panels page
Comment #16
nancydruThe patch failed while searching for workflow_insert_workflow_node_history($data)
Comment #17
djake commentedAny progress on this? Would be a huge help.
Comment #18
joel_osc commentedI didn' really undestand the error mentioned above, so I have not looked into it much. I am using the patch on a few sites already and I am not having any issues. I just re-tested applying the patch so that seems to work, perhaps the error above was at run-time then? Maybe you could give it a try and see if you get any errors - I would be happy to look into them if you do.
Comment #19
nancydruWhat release did you test applying the patch? When I tried it on the dev that was current then, it failed to apply.
Comment #20
joel_osc commentedI had tested against the 1.2 release, noticed some whitespace errors so have re-rolled the patch against the latest dev release. Please let me know if this one still has issues, thanks!
Comment #21
johnvI'm not familiar with Panels, but the new 2.x version probably needs a rework/test of this patch.
Comment #22
natew commentedI re-packaged joel_osc patch for the latest 7.x-2.x-dev and it is working for me.
Comment #23
botrisPlease change
return 'plugins/content_types';intoreturn "plugins/$plugin";so to be compatible with #2187731: Panels access / selection rules based on workflow and with other ctool plugins in general. Thanks.Comment #24
joel_osc commentedWith workflow fields this patch is no longer necessary as fields are natively supported in panels. If anyone using workflow node needs the patch here it is with changes as suggested. I am not sure if it is worth adding to the workflow module at this point.
Comment #25
johnvComment #26
bibishani commentedI`m adding re-packaged joel_osc patch for the latest 7.x-2.x-dev with hash : 9d5f81dd67e69c88f7966f9be0f1cbd405e2372c from 2014-May-13 .
Comment #27
johnvIf the hook in workflow.module is moved to workflownode.module and it still works, i can add it to the module.
Comment #28
johnvComment #30
johnvCommitted this with attribution , @joel_osc.
It was committed to workflow_node not workflow. I hope this does not make a difference.
Please reopen if there is a problem.
Comment #32
dshields commentedThis actually doesn't seem to work anymore. I'm not sure if something in Chaos Tools changed or if there's another culprit, but this seems to only work now when you explicitly state the render callback for the plugin. Test this patch against the latest dev (7.x-2.5+15-dev) and let me know if this works now.
Comment #33
Renee S commentedThere is a problem with the workflow_field implementation in Panels too, at least if you're using action buttons -- the formatter it uses is the default formatter, not a selection formatter, but the action button formatter doesn't, of course, work there.
ETA: Since this is set as workflow_node, I've created this as a new issue here: #2487728: Panels not compatible with workflow_field-with-action-buttons
Comment #35
johnvLet's close this one.