New answers tagged

2

I was able to figure this out using the following code: $getSessionArray = CRM_Core_Session::singleton()->get('CRM_Utils_Recent'); $thisContactID = $getSessionArray[0]['id'];


2

In general there is a risk of having a CMS user deleted when the CRM contact is deleted, since the CMS user can (in theory) be the author of pages, comments etc Therefore Civicrm does not offer this directly and I think you would need to find/make a customisation/extension or see if there is a tool in WP that you could use that would make it easy to find ...


0

If you use Drupal, I'd recommend setting up a view that lays out the bits you want for your print-friendly data screen, and then use the Drupal print module to give you the print-friendly and/or pdf-generated versions. The print module can actually generate both print-friendly and pdf-generated versions of any page (via a url trick, prefix with "print/"), i....


4

This sounded like a useful feature, so I added Age tokens to Eileen's CiviTokens extension, which seems to be the most widely used extension of its kind. Until a new release comes out, you'll have to pull from the master branch of the git repo.


2

Welcome to civicrm stackexchange. Couple of options here. One option is to split your file into smaller chunks. If you have the ability to alter the php settings on the server you can change these to increase the time over which the import can run the option you probably want to look at is max_execution_time - in your php ini file. Depending on your ...


1

If the problem is that the county does not show up with viewing the address on the contact summary page... You can control what address fields are displayed by clicking Adminster -> Localization -> Address Settings. Then, find the Address Display Format field and add to it: {contact.county} If the problem is that when you edit the address, no county ...


5

I don't see any either, but the code to use in such an extension (as either a token or even a smarty modifier) seems pretty straightforward: https://github.com/civicrm/civicrm-core/blob/5.19.2/CRM/Contact/BAO/Contact.php#L2677-L2684 if ($contact->birth_date) { $birthDate = CRM_Utils_Date::customFormat($contact->birth_date, '%Y%m%d'); ...


2

you can get both Phone and Mobile in a single API call as below $result = civicrm_api3('Phone', 'get', [ 'sequential' => 1, 'contact_id' => 203, 'phone_type_id' => ['IN' => ["Phone", "Mobile"]], ]); I have created the test example against https://dmaster.demo.civicrm.org I guess this helps !!! Thanks


2

Mostly when working with complex form requirements in Drupal, folk are opting to use webform_civicrm as the flexibility it provides opens up many new options. For example in your case you could use Webform Conditionals to determine which fields show based on the choice of Membership Type (or type an existing user has if they are logged in or using a ...


1

Thanks for asking a question like this. Merging of duplicate of contacts is a difficult process for a system like CiviCRM. Becasue CiviCRM is used in different countries and in different organizations. Each one has it is own rules who is a duplicate. The first difficulty is to identify who is a duplicate. The second difficulty is to merge those contacts. ...


0

Also, depends on your setup, but if the message is going external, then the img src url would need to refer to an externally web hosted image file. Apologies if I'm stating the obvious.


3

There is a patch to support the character encoding necessary: https://lab.civicrm.org/dev/core/issues/339. The issue is whether to support older character sets for folks who can't/won't switch over. One position is that it's not a big ask for users to upgrade, but difficult for the developers to support both; the other position is that it forces an update ...


1

The short answer is No, Notes (apparently) may not contain emoji graphics. When I removed the 'megaphone' emoji from the above text, the rest of the Note text saved successfully.


2

The Contact Layout Editor extension, first released in 2018, allows you to do quite a bit of hiding and rearranging on the Contact Summary screen.


Top 50 recent answers are included