Closed (fixed)
Project:
ECK Page Manager
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
5 Nov 2014 at 01:29 UTC
Updated:
13 Nov 2014 at 16:49 UTC
Jump to comment: Most recent
It would be great to have ctools context plugin for add (and edit) eck form.
Or maybe there is another way to get this functionality?
Thank you for very usefull module!
Comments
Comment #1
mnico commentedYes, I will try to add this feature ;)
Comment #2
mnico commentedComment #4
mnico commentedFunctionality has been added to the development branch. Please review it and test it. ;)
Maybe it has some minor bugs.
Comment #5
rozh commentedWow! That was speed of light :) And it works great.
Is it possible to create context plugin like it was done in https://www.drupal.org/project/entityform_panels? With this plugin you have to add context to page then select fields in the "Add content" dialog, so you can insert add form in any page. With eck_pm we have add form only on /admin/structure/entity-type/some-entity/some-bundle/add which is not very beautiful path.
Or maybe there is a way to change path for entity add page. If so could you point me how to do that.
And thank you so much for your job!
Comment #6
mnico commentedOk, I think I could create the context you mention. Anyway there is another way to use another path to the add form:
1) You could use pathalias or
2) If you can build a module you could implement hook_entity_info_alter() and doing the following:
And the eck_pm will detect this change.
I hope this can help you for now.
Comment #7
mnico commentedComment #9
mnico commentedOr maybe you want to try the new context "ECK Add form" ;)
I hope it works well
Comment #10
rozh commentedThank you for snippet. You are very helpful.
I've tried context plugin and entity was saved correctly but I've got a notice message.
Notice: Undefined property: ctools_context::$form_title in function ctools_form_content_type_render() (string 36 in file /sites/all/modules/ctools/plugins/content_types/form/form.inc).
I think the cause in "General form" pane, because field panes + submit button pane work fine.
Comment #12
mnico commentedWith the last change the message should no longer appear. ;)
Comment #13
rozh commentedYes! Everything is great.
I think it's time to add description about new cool feature to project page :)
Comment #14
mnico commentedDone ;) thank you