如何更改商机模块中子面板的默认顺序

时间:2016-01-12 05:08:57

标签: sugarcrm

我需要更改商机模块中子面板的默认顺序。我一直在寻找一个解决方案,并没有找到一个有效的解决方案 我正在使用SugarCRM CE 6.5.13
提前谢谢。

2 个答案:

答案 0 :(得分:2)

你的问题其实不清楚。您是否要求子面板的顺序,这意味着如何将一个子面板放在另一个子面板上。或者您是否有关子面板内数据顺序的问题?

对两者的快速反应是:

{MainModule} /metadata/subpaneldefs.php中的

应该是子面板声明的排序顺序,如下所示:

$layout_defs[{MainModule}] = array(
    // list of what Subpanels to show in the DetailView 
    'subpanel_setup' => array(
        '{TheSubpanel}' => array(
            'order' => 1, // influences the place of the subpanel relative to the other subpanels
            'module' => '{TheSubpanel}',
            'subpanel_name' => 'default', // attention please check the subpanel module to make sure there is not another setting overriding this setting
            'sort_order' => 'desc',
            'sort_by' => 'date_entered',
 ...       

同时检查上面定义的包含子面板字段的文件。在这种情况下,可以在{TheSubpanel} /metadata/subpanels/default.php中找到

$module_name = '{TheSubpanel}';
$subpanel_layout = array(
    'top_buttons' => array(
    'where' => '',
    'sort_order' => 'desc',
    'sort_by' => 'date_entered',

请注意,更改后您需要运行'rebuild&修复'如果你手动点击排序字段,那么你应该清除你的cookie缓存并再次登录。

还有其他关于堆栈溢出的问题,如how-to-change-default-sort-in-custom-subpanel-sugarcrm

答案 1 :(得分:0)

如果您不想进行代码级自定义,则只需将子面板序列拖放到记录的详细视图上即可。子面板的顺序将被保存。

相关问题