CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • More than one employer and website... little things like that...
Pages: [1]

Author Topic: More than one employer and website... little things like that...  (Read 1955 times)

adshill

  • I post occasionally
  • **
  • Posts: 96
  • Karma: 8
More than one employer and website... little things like that...
August 19, 2009, 09:17:19 pm
Is it possible that contacts could have more than one "Current Employer" on the contact edit screen?

I understand it would be possible to add another relationship using the relationship tab but we're interested in having another auto-fill field on the main contact edit screen. Is this possible or feasible or would/could it cause conflicts somewhere?

Also - something I think should/could be modified in core and I'm wondering if there is a reason for it (especially in 3.0 with the nice new interface) but is there any reason why you can't add multiple website addresses for a contact too? In this day and age many people and organisations have multiple web addresses - is there a reason behind this or just thought not necessary?

Last things tonight I promise... Lobo mentioned in London a way to add an extension for phone numbers but I don't remember what it was - any guidance would be great. And finally, the Job Title field is limited quite heavily in number of characters and size of the input box. Working with institutions, the job titles can get pretty huge - how do we increase this limitation and input field size?

Thanks, and very sorry for my bombardment of stuff tonight, just had one of those nights of discoverys...

Adam
« Last Edit: August 19, 2009, 09:26:25 pm by adshill »

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: More than one employer and website... little things like that...
August 20, 2009, 03:41:44 am
Hey,

Quote from: adshill on August 19, 2009, 09:17:19 pm
Is it possible that contacts could have more than one "Current Employer" on the contact edit screen?

I understand it would be possible to add another relationship using the relationship tab but we're interested in having another auto-fill field on the main contact edit screen. Is this possible or feasible or would/could it cause conflicts somewhere?

It is possible, although might be a bit complicated. To do it properly (not as a hack), might require quite serious database changes and quite a lot of code.

Quote from: adshill on August 19, 2009, 09:17:19 pm
Also - something I think should/could be modified in core and I'm wondering if there is a reason for it (especially in 3.0 with the nice new interface) but is there any reason why you can't add multiple website addresses for a contact too? In this day and age many people and organisations have multiple web addresses - is there a reason behind this or just thought not necessary?

We were considering it upon recent usability redesign, but decided to defer to later version. A patch would be great. :-)

Quote from: adshill on August 19, 2009, 09:17:19 pm
Last things tonight I promise... Lobo mentioned in London a way to add an extension for phone numbers but I don't remember what it was - any guidance would be great. And finally, the Job Title field is limited quite heavily in number of characters and size of the input box. Working with institutions, the job titles can get pretty huge - how do we increase this limitation and input field size?

Not sure about phone extension thing, maybe Lobo responds when he shows up online.

As for job title - I actually run over the same problem a few times, so cranking up the field to 256 characters. Will be available with next 3.0 release. Issue for this: http://issues.civicrm.org/jira/browse/CRM-4932

Thx,
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: More than one employer and website... little things like that...
August 20, 2009, 04:16:38 am
Quote
Is it possible that contacts could have more than one "Current Employer" on the contact edit screen?

Towards custom coding, one way could be (w/o any db change) - adding custom data of type "contact reference" and using hooks to create relationship and custom template to adjust the display/layout if needed.

Quote
why you can't add multiple website addresses
Even schema currently doesn't support it. A temporary solution could be using custom data of type link.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: More than one employer and website... little things like that...
August 20, 2009, 05:10:21 am

my memory is not great. can u elaborate a bit more on the phone number extension conversation?

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

adshill

  • I post occasionally
  • **
  • Posts: 96
  • Karma: 8
Re: More than one employer and website... little things like that...
August 27, 2009, 11:19:10 am
I was sure you mentioned something about an easy way to add an extension to a telephone number when it was discussed in London, however I could be mistaken. But maybe you can answer me this. Its easy to add custom fields within their own field group which is great, but what about adding fields to the core details. Example would be the Extension number, this needs to be next to the telephone number. Another would be that alongside "Job Description" We would like a "Department/Unit" field.

Can you tell me what is best practice for doing that?

( I realise there are a number of ways, just trying to determine what you'd suggest to ensure a clean upgrade path etc.)
« Last Edit: August 27, 2009, 11:21:51 am by adshill »

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: More than one employer and website... little things like that...
August 27, 2009, 01:01:10 pm

1. add a custom field form element via a buildForm hook

2. customize the template to expose that form element in the right place

3. implement a postProcess hook to store the custom field in the db

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • More than one employer and website... little things like that...

This forum was archived on 2017-11-26.