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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Phone notes
Pages: [1]

Author Topic: Phone notes  (Read 1646 times)

ahankinson

  • Guest
Phone notes
July 03, 2008, 07:16:52 am
Hi,

My clients want to be able to put a note for the "Phone" field for an organization indicating who that phone number belongs to in the organization.  For example, a phone number of 555-123-4567 might have the note "Secretary", while a second phone number for the same 555-123-7890 might have the note "President." 

I'm happy to do some hacking, but I'd have to know where to look to add this.

I'm on CiviCRM 1.9.

Thanks!
-Andrew

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: Phone notes
July 03, 2008, 12:13:18 pm

this is a pretty involved change and u'll need to hack quite a few tpl files and templates. here are some of them:

1. add a note field to the xml/schema/Core/Phone.xml file and rebuild the mysql (which also generates the DAO)

2. add code to Core/BAO/Phone.php, Core/BAO/Block.php to set/get the note field

3. change the Edit/View screens to display the phone note if present

in 1.9, phone is under location which is under contact you'll need to follow the code to find out other places where you might need to make the change

chat with us on IRC if you need help or assistance. I would advise you to move to 2.0 since the schema has been simplified in this area from 1.9

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

ahankinson

  • Guest
Re: Phone notes
July 07, 2008, 10:38:26 am
Thanks Lobo,

I'd love to move to Civi 2.0, but my host (Site5) is, for some unknown and highly embarrassing reason, still on MySQL 4.

I'll have a look at the files you suggested, and will pop on IRC if I get in over my head.

Thanks again!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Phone notes

This forum was archived on 2017-11-26.