SugarCRM 6.2 - 在用户配置文件中添加自定义字段 [英] SugarCRM 6.2 - Adding a custom field in user profile
问题描述
是的.正如标题所说,我的任务是在用户个人资料中创建自定义字段,并在此方面碰壁.这是一个非常小的定制,在用户编辑和详细信息视图中添加一个 yearly_target
字段.
Yeah. As the title says, I am tasked with creating custom field in user profile, and sort of hit a wall on this one. It is a very small customisation, add a yearly_target
field to user edit and detail view.
我很高兴偶然发现了这个文章在糖中添加自定义字段.
虽然这是一个巨大的帮助,但它似乎缺少一两个小点.
I was happy to stumble on this article to add a custom field in sugar.
Although it's a huge help, it seems to be missing one or 2 minor points.
要在编辑和详细视图中显示字段,显然需要创建和编辑 EditView.php
和 EditView.tpl
和 DetailView.php
和 DetailView.tpl
,但我不太确定这些文件的去向.年度目标字段显示在用户列表视图中,但不在编辑/详细信息视图中.我尝试了 custom/modules/Users
、 custom/modules/Users/ext
,但在模板中所做的更改(静态 html 更改)无效.
To have the fields show in edit and detail views, one apparently needs to create and edits EditView.php
and EditView.tpl
and DetailView.php
and DetailView.tpl
, except I am not too sure where these files go. The yearly target field shows up in user list view, but not in edit/detail views. I tried custom/modules/Users
, custom/modules/Users/ext
, but changes made in the templates (static html changes) have no effect.
有人知道这些文件应该放在哪里吗?
Anyone know where these files should go?
感谢 SO'ers!
推荐答案
它们应该放在 custom/modules/Users/目录中.请务必更改 EditView.php 和 DetailView.php 文件中的引用,以引用 custom/modules/Users/目录中的模板,而不是 modules/Users/目录中的默认模板.
They should go in the custom/modules/Users/ directory. Do make sure you change the references inside the EditView.php and DetailView.php files to reference the templates you have in the custom/modules/Users/ directory instead of the default ones in the modules/Users/ directory.
这篇关于SugarCRM 6.2 - 在用户配置文件中添加自定义字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!