5

So a little research takes me to Totten's blog where he lays out the rational for splitting out entity definitions into seperate PHP files. The full definition of the array format is laid out in the hook_civicrm_managed guide and an example .mgd.php file is here


3

So my understanding of your use case is that you want to record in the back end in-kind donations related to items to be auctioned off in bundles. I assume that each item has its own valuation, and that you are mainly interested in getting a custom field on the contribution to reference an item. (I would guess the bundles of items are the sales side of the ...


3

This is a great question and frankly I've found it challenging to "seamlessly" integrate Drupal and Civicrm. I have successfully used the Drupal Rules module and Civicrm Entity to make Civicrm updates. Alternatively, you can use the rule module and a PHP snippet to invoke the Civi API and make the update. The civicrm_entity / rules approach does not let ...


3

One possibility would be to use views module to create a view that displays auction package nodes, with a contextual filter for the contribution reference field. Then you provide a block display and configure the block to show on contribution pages; it should show the package that is referencing that contribution. This doesn't pull any Drupal entity data ...


3

I need to add an option "Tag ID" in the Host Source Column field setting of the CiviCRM Entity Reference module to make this work. It won't take much to add it. Look in your code to the matching file, add: 'tag_id' => 'Tag ID (Entity Tag)', https://github.com/eileenmcnaughton/civicrm_entity/blob/7.x-2.x/modules/civicrm_entity_reference_field/...


1

So out of the box, CiviCRM Entity enforces that user has a role with 'view event info' permission to see the rendered entity. In your case, you could probably just grant anonymous users that permission This can be modified by implementing hook_civicrm_entity_supported_info() in a custom module, where you can change what permissions are necessary to view ...


1

So I've done some development to enable CiviCRM Entity Reference (CER) fields that target CiviCRM Contacts, either via the Drupal contact edit form "/civicrm-contact/add" or via an entityreference field targeting contacts (which form has CER fields attached), that can be on nodes or other entity types, using the Inline Entity Form Single widget. Its ...


1

It depends what you are after. You can use CiviCRM Contact Reference Field and this gives you a field on Node that you can then pull in the civi data. Having done that you can then pull in other civi data to that node via Views. You can see an example of this in action here where the Node is the Party, there is a reference field on that node to the Party ...


1

When you install Entityreference, you get a Views Display, 'Entityreference' You can create a Entityreference view, and use that View to choose what the options are for your entityreference field widget. In this view you can sort, and get your sort order that way.


Only top voted, non community-wiki answers of a minimum length are eligible