| Previous topic :: Next topic |
| Author |
Message |
hairpriz
Joined: 13 Feb 2008
Posts: 16
|
| Posted: Thu Feb 28, 2008 5:16 pm Post subject: Lost in the files |
|
|
Hi everybody!
I would like to find a file!
In the module "settings->mail merge templates->new template"
there is a drop down list with
- leads
- accounts
- contacts
- trouble tickets
I would like add an option to this list so i have to find the form in all the files of vTiger. The problem is i can't find this file. If you have any idea or suggestion it would be great!
ps: sorry if my english is not perfect, i'm from belgium :oops: |
|
| Back to top |
|
Balduin
Joined: 18 May 2005
Posts: 1723
Location: Berlin
|
| Posted: Thu Feb 28, 2008 8:41 pm Post subject: Lost in the files<br /><a href="viewtopic.php? |
|
|
I am not sure that I understand your intention correctly but I do not think it is a good idea.
Here is why: These drop down lists are used to find the substitutes (e.g. $contacts-lastname$) which are related to the modules and which are different for leads, accounts etc.
Therefore, you can't make form which is suitable for all modules. |
|
| Back to top |
|
hairpriz
Joined: 13 Feb 2008
Posts: 16
|
| Posted: Fri Feb 29, 2008 7:26 am Post subject: Re: Lost in the files |
|
|
Thanks for the quiclkly answer Balduin!
In fact I would like to add the feature "document merge" to the Potential module because I have to create a document in relation with that module. I think it almost works but now i have to find the form. You know what I mean? |
|
| Back to top |
|
hairpriz
Joined: 13 Feb 2008
Posts: 16
|
| Posted: Fri Feb 29, 2008 7:35 am Post subject: Re: Lost in the files |
|
|
But maybe you have right and it's a waste of time :?
It could be easier to add fields in the Account module.
what do you think about that? |
|
| Back to top |
|
Balduin
Joined: 18 May 2005
Posts: 1723
Location: Berlin
|
| Posted: Fri Feb 29, 2008 9:42 am Post subject: Re: Lost in the files |
|
|
| I have no idea what you intend to achieve. |
|
| Back to top |
|
hairpriz
Joined: 13 Feb 2008
Posts: 16
|
| Posted: Fri Feb 29, 2008 10:10 am Post subject: Re: Lost in the files |
|
|
I would like to create a mail merge from the Potential module which hasn't
got these fonctionality.
But now I just want to know where is the php file which displays the form
in the page "settings->mail merge template->new template"
Does the explanation more undertandable?
Sorry but i have some difficulties to explain clearly my situation. |
|
| Back to top |
|
carloz
Joined: 11 Sep 2007
Posts: 436
Location: Brescia, Italy
|
| Posted: Mon Mar 03, 2008 8:50 am Post subject: Re: Lost in the files |
|
|
hi hairpriz,
if i get it right, you want mail merge creation in the potential module the same way it is for example in contacts module...
around line 99 of Contacts/DetailView.php you have:
<code>
if(isPermitted("Contacts","Merge",'') == 'yes')
{
$smarty->assign("MERGEBUTTON","permitted");
require_once('include/utils/UserInfoUtil.php');
$wordTemplateResult = fetchWordTemplateList("Contacts");
$tempCount = $adb->num_rows($wordTemplateResult);
$tempVal = $adb->fetch_array($wordTemplateResult);
for($templateCount=0;$templateCount<$tempCount;$templateCount++)
{
$optionString[$tempVal["templateid"]]=$tempVal["filename"];
$tempVal = $adb->fetch_array($wordTemplateResult);
}
$smarty->assign("TEMPLATECOUNT",$tempCount);
$smarty->assign("WORDTEMPLATEOPTIONS",$app_strings['LBL_SELECT_TEMPLATE_TO_MAIL_MERGE']);
$smarty->assign("TOPTIONS",$optionString);
}
</code>
then for sure you'll have to modify some files in Smarty/templates/ ...
hope it sounds good as a first hint :-)
ciao
carloz |
|
| Back to top |
|
| |