Sugar CRM 6.1.如何编辑帐户模块的详细视图
我正在致力于定制 Sugar CRM 6.1 。我正在编辑帐户模块的详细视图, 在详细视图中,我添加了一个存储在该变量中的自定义数组,
$this->bean->extra_phonenumbers = array( "phone1" =>'434343' , "phone2"=>'32323223' , "phone3"=>'344343545679');
任何人都可以帮助我如何在帐户模块的默认 viewdetail.php 中系统地显示这些数组。
您可以在帐户模块中看到view.details.php
I am working on customizing sugar CRM 6.1 . I am editing Detailview of account module,
In detailview I am adding a custom array stored in this variable
$this->bean->extra_phonenumbers = array( "phone1" =>'434343' , "phone2"=>'32323223' , "phone3"=>'344343545679');
Can anybody help me how to display these array systematically in Default viewdetail.php of Account module.
You can see view.details.php in account module <baseurl>/modules/Accounts/views/view.details.php
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在
vardefs.php
中为Accounts
声明此字段,然后将其添加到metadata/detailviewdefs.php
中。您可以将customCode
属性用于非标准显示 - 查看它是如何针对现有字段完成的。Declare this field in
vardefs.php
forAccounts
and then add it tometadata/detailviewdefs.php
. You can usecustomCode
property for non-standard displays - see how it's done for existing fields there.如果您正在编辑 Detailview“View”类,则可以将该字段分配给 smarty 变量 $this->ss->assign 并添加详细视图定义,以根据需要使用上面建议的 customCode 显示该字段。
If you are editing Detailview "View" class then you can assign that field to a smarty variable $this->ss->assign and add in detailviewdefs to show that field with customCode as suggested above if needed.