3

カスタム フィールド タイプを SugarCRM 6.2 インスタンスに追加しようとしています。email link" " 型フィールドを追加したい。URL フィールドのように機能させたいのですが、すべてのアドレスの"mailto://"前に の代わりにプレフィックスを付けます"http://"

新しいフィールドを作成するとき、または少なくともそれを達成するためのカスタムコードを作成するときに、そのフィールドタイプがスタジオで利用できるとよいでしょう。

これまでに行ったこと: - include/SugarFields/Fields/URL を include/SugarFields/Fields/Email にコピーしました - modules/ModuleBuilder/language/en_us.lang.php に email フィールドのタイトルを追加しました

しかし、何も機能しません。何か助けはありますか?

4

2 に答える 2

3

First of all you do not want to make any coding changes outside of the custom directory. Doing so outside of this directory is not upgrade safe.

  1. Create a custom fields directory in your custom folder
  2. Create new template files (.tpl) for your custom field

then you can just add a regular textfield in studio then edit your viewdefs in your custom directory in your tpl file concatenate the mailto:// to your text and just add the persons email address and it will take care of the rest for you

于 2011-05-24T14:07:08.803 に答える