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

CommentFileSizeAuthor
#5 page_manager_integration-1783476-5.patch1.18 KBRoSk0
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dealancer’s picture

I 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.

Anonymous’s picture

Status: Active » Closed (fixed)

There'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.

rerooting’s picture

Status: Closed (fixed) » Needs work

Using 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.

Anonymous’s picture

@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.

RoSk0’s picture

Assigned: Unassigned » RoSk0
Status: Needs work » Needs review
FileSize
1.18 KB

Initial 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.

muschpusch’s picture

Status: Needs review » Reviewed & tested by the community

Initial patch attached.
Code committed in development branch.

This is a bit confusing :) The patch still needs to be applied and works fine

muschpusch’s picture

hm... 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?!?

RoSk0’s picture

Currently, 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.

Anonymous’s picture

We'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.

dsnopek’s picture

This patch works great for me! I can't wait until it gets committed. :-)

dsnopek’s picture

Actually... 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. :-)

Anonymous’s picture

Status: Reviewed & tested by the community » Closed (fixed)

Committed to the 0.95 release.

  • Commit cf6bc50 on 7.x-1.x, development, import by dealancer:
    Issue #1783476: added integration of crm core contact entity and page...
  • Commit 5a4521d on 7.x-1.x, development, import by dealancer:
    Issue #1783476: fixing bugs in contact view page func for page manager
    
  • Commit ce1cc63 on 7.x-1.x, development, import by dealancer:
    Issue #1783476: fixed some bugs when overriding contact display in page...
  • Commit c837533 on development, 7.x-0.x, import by RoSk0:
    Issue #1783476 by RoSk0: Fixed page manager integration.
    
    Function "...

  • Commit cf6bc50 on 7.x-1.x, development, import, activity_pages by dealancer:
    Issue #1783476: added integration of crm core contact entity and page...
  • Commit 5a4521d on 7.x-1.x, development, import, activity_pages by dealancer:
    Issue #1783476: fixing bugs in contact view page func for page manager
    
  • Commit ce1cc63 on 7.x-1.x, development, import, activity_pages by dealancer:
    Issue #1783476: fixed some bugs when overriding contact display in page...
  • Commit c837533 on development, 7.x-0.x, import, activity_pages by RoSk0:
    Issue #1783476 by RoSk0: Fixed page manager integration.
    
    Function "...