The Joomla! Forum ™





Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Fri Dec 15, 2006 11:21 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Nov 17, 2006 11:14 am
Posts: 13
Is there a way to display the Unique Contact ID number for a contact, ideally as part of a contacts summary page?

The only place I can see it when using CiviCRM is as part of the URL.

Thanks


Top
 Profile  
 
PostPosted: Sat Dec 16, 2006 6:33 pm 
Joomla! Intern
Joomla! Intern

Joined: Fri Oct 07, 2005 11:45 am
Posts: 80
version 1.6 does this already. Look at the bottom of the page just above "Powered by CiviCRM".


Top
 Profile  
 
PostPosted: Sun Dec 17, 2006 2:08 am 
Joomla! Guru
Joomla! Guru

Joined: Tue Aug 23, 2005 5:45 am
Posts: 502
Any specific reason you need that displayed? its available in the template

lobo


Top
 Profile  
 
PostPosted: Mon Dec 18, 2006 2:44 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Nov 17, 2006 11:14 am
Posts: 13
We are currently using v1.5, so sounds like as soon as v1.6 is out of beta we will be OK.

Although if there is a way to enable this in v1.5, I'd be glad to hear about it.

The reason for this requirement, is so we can use a contact's unique ID to match data in other offline databases.

Thanks


Top
 Profile  
 
PostPosted: Mon Dec 18, 2006 5:47 pm 
Joomla! Guru
Joomla! Guru

Joined: Tue Aug 23, 2005 5:45 am
Posts: 502
The value is present in the template and used in quite a few urls in the display. i dont think it is exposed as a number even in 1.6. You'll have to hack your install to do so

lobo


Top
 Profile  
 
PostPosted: Tue Dec 19, 2006 11:00 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Nov 17, 2006 11:14 am
Posts: 13
Any tips on how to do this, where is the Contact Summary page generated from?


Top
 Profile  
 
PostPosted: Tue Dec 19, 2006 5:58 pm 
Joomla! Guru
Joomla! Guru

Joined: Tue Aug 23, 2005 5:45 am
Posts: 502
check this series of blog entries: http://civicrm.org/architecture

should give u enough information to be dangerous

lobo


Top
 Profile  
 
PostPosted: Thu Jan 11, 2007 9:49 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri Nov 17, 2006 11:14 am
Posts: 13
Quick follow-up, I followed lobos advice and made my first attempt at hacking the template (backing it up first of course).

I viewed the source of the Contact Summary page and found it was generated from the template CRM/Contact/Page/View/Basic.tpl .

I opened this file (I use JoomlaXplorer) and changed the line:
Code:
<label>{$displayName}</label>
to
Code:
<label>{$contactId} | {$displayName}</label>


So the contact ID now shows on all contact pages along with the display name.

richanx


Top
 Profile  
 
PostPosted: Fri Jan 12, 2007 9:59 am 
Joomla! Guru
Joomla! Guru

Joined: Tue Aug 23, 2005 5:45 am
Posts: 502
cool

thats awesome. thanx for documenting this :)

lobo


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 



Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group