Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
There are lot's PM tasks to create, that allows to add pages and use context and variants for them:
* Contact View
* Activity View
* Relationship View
* Case View
* Contact Edit
* Activity Edit
* Relationship Edit
* Case Edit
Comment | File | Size | Author |
---|---|---|---|
#5 | page_manager_integration-1783476-5.patch | 1.18 KB | RoSk0 |
Comments
Comment #1
dealancer CreditAttribution: dealancer commentedI have added Contact View plugin and it is quite easy to add other view plugins to (probably it can go to entity api module).
I ran into a problems with Panels module. Looks like it requires new ctools plugin of content_type type to be added. This should be implemented in Entity API, but looks like it is not working, see #1261044: Add a direct support of entity in ctools page manager.
Also there is a patch that needs to be reviewed, it adds support of relation module to page manager for creating related contexts, see #1717364: Add CTools "relationships" plugin.
Another problem related to page manager context relationships but it happens in core, see #1340748: Add CTools relationship and #1416506: Field schema foreign keys support is broken.
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedThere's a lot of ways for CRM Core to interact with panels / context / other things in it's current form.
Start by just disabling the view for any of these entities and replacing it with the other thing you want to use.
Comment #3
rerooting CreditAttribution: rerooting commentedUsing the development branch, when I go to enable the 'Contact Template' that is provided, I get this error message:
Page manager module is unable to enable crm-core/contact/%crm_core_contact because some other module already has overridden with crm_core_contact_ui_view.
So then, if I disable crm_core_contact_ui, I can enable this, or create other pages and variants that use this path and the Contact ID context, however this makes the contact editing form unavailable. I can try to create the path crm-core/contact/%contact/edit and add the form fields, but these don't work properly.
Additionally it would be nice to be able to use panelizer, but that would probably require another issue. Also, this report may be misplaced and, if so, I'd be willing to create a seperate issue for it.
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commented@rerooting - Hrm. This is something we will need to look into.
crm_core_contact_ui_view can actually be changed to a page preprocessor function, the only thing it is really doing is setting breadcrumbs. If this is all that's interfering with panels integration, we might be able to get that taken care of in the next day or so.
Comment #5
RoSk0Initial patch attached.
Code committed in development branch.
Some notes: Function "crm_core_contact_ui_view" was removed totally because breadcrumbs is already correct, after we changed path from crm-core/contacts => crm-core/contact.
Comment #6
muschpusch CreditAttribution: muschpusch commentedThis is a bit confusing :) The patch still needs to be applied and works fine
Comment #7
muschpusch CreditAttribution: muschpusch commentedhm... There is indeed a development branch which isn't the one on the project page:
http://drupalcode.org/project/crm_core.git/shortlog/refs/heads/development
Which one to use?!?
Comment #8
RoSk0Currently, development done in development branch :). When it comes to release dev branch merged to main(7.x-1.x).
If you want to test latest changes took dev branch, if you want to work with stable code grab latest release.
Comment #9
Anonymous (not verified) CreditAttribution: Anonymous commentedWe're going to push a new version this weekend that includes this functionality to the latest, stable version of CRM Core. I am not running into any issues with it when I test.
Comment #10
dsnopekThis patch works great for me! I can't wait until it gets committed. :-)
Comment #11
dsnopekActually... It is committed but to a branch named "development"! I hadn't realized that you guys weren't doing development in the 7.x-0.x branch, which is pretty standard on Drupal.org. I'm going to start working of this newly discovered (for me) branch. :-)
Comment #12
Anonymous (not verified) CreditAttribution: Anonymous commentedCommitted to the 0.95 release.