Page 1 of 1

Mailto: Email Address

Posted: 25 Oct 2016, 17:45
by dveos
Hi,

Interested to know whether possible to include a mailto: for email addresses on candidate / contact list? I noted in /lib/contacts(or candidates etc.) the following:-

'E-Mail' => array('select' => 'contact.email1 AS email1',
'sortableColumn' => 'email1',
'pagerWidth' => 80,
'filter' => 'contact.email1'),

I have tried a few 'pagerRender' => 'return ... combinations but can't seem to get it to work :(

Re: Mailto: Email Address

Posted: 25 Oct 2016, 17:46
by dveos
Also, adding to that - I'm not sure if pagerRender is even the right thing to use; I'm trialling and error'ing, plz don't burn me haha :D

Re: Mailto: Email Address

Posted: 26 Oct 2016, 10:20
by RussH
Hi,

maybe if you can take a step back - what are you trying to achieve? making the email address in the contact list clickable?

Re: Mailto: Email Address

Posted: 26 Oct 2016, 11:45
by dveos
Hi Russ, precisely that :)

Re: Mailto: Email Address

Posted: 26 Oct 2016, 12:21
by RussH
Okay! so you want them as clickable hypertext links in the list view, as when you open the candidate details view, they are displayed as clickable hypertext links

In /modules/candidates/Show.tpl, the field is displayed by;
Code: Select all
 <tr>
                                <td class="vertical">E-Mail:</td>
                                <td class="data">
                                    <a href="mailto:<?php $this->_($this->data['email1']); ?>">
                                        <?php $this->_($this->data['email1']); ?>
                                    </a>
                                </td>
                            </tr>
haven't identified where the lists view is right now - but this is they type of code you should be adding...

Re: Mailto: Email Address

Posted: 26 Oct 2016, 13:39
by dveos
Thanks Russ,

Having looked through code, I think the contact / candidate list page is displaying lib/Contacts(or candidates).php - although I may be wrong. I have tried using codes similar to the above but to no avail :(

Re: Mailto: Email Address

Posted: 20 Jan 2017, 03:15
by jda
Hi, mailto:email address is working in a local server where i install opencats folder and all
but when i try to access the local host with different computer/laptop, the mailto: and other clickable are not working..

Pls. help!

Re: Mailto: Email Address

Posted: 02 Feb 2017, 11:12
by cptr13
This is totally cheating and a workaround. But it looks like there are plugins for Chrome that automatically turn email links on a page into hyperlinks. I imagine there are some for firefox as well. That may be worth looking at.