Hello again,
this time i'm trying to recreate a problem which appears here very often and was solved very often but in my case i don't know what i am doing wrong.
I tried the following approach in both SugarCRM 5.5 CE (already customized= and 6.03 CE (fresh install).
1) i created a custom module via Module Builder
2) i edited the file custom/modules/my_custom_module/metadata/detailviewdefs.php
The first lines of the file before modification:
and afterwards, one of several approaches trying to get a custom button in thereCode:<?php $module_name = 'my_custom_module'; $_object_name = 'my_custom_module'; $viewdefs [$module_name] = array ( 'DetailView' => array ( 'templateMeta' => array ( 'maxColumns' => '2', 'form' => array ( ), 'widths' =>
After saving the file, and reloading the page nothing changed. What am i mssing here?Code:<?php $module_name = 'my_custom_module'; $_object_name = 'my_custom_module'; $viewdefs [$module_name] = array ( 'DetailView' => array ( 'templateMeta' => array ( 'maxColumns' => '2', 'form' => array ( 'buttons' => array ( 0 => 'EDIT', 1 => 'DUPLICATE', 2 => 'DELETE', 3 => 'MY_CUSTOM_BUTTON', ), ), 'widths' =>
I then also tried changing other fields, but also with no effect
toCode:'panels' => array ( 'default' => array ( 0 => array ( 0 => array ( 'name' => 'document_name', 'label' => 'LBL_DOC_NAME',
Code:'panels' => array ( 'default' => array ( 0 => array ( 0 => array ( 'name' => 'document_name', 'label' => 'LBL_SF_CATEGORY',
breaking the code is easy - resulting in a white empty page, therefore i don't believe it's caching or the wrong file i'm editing.
toCode:array ( 'name' => 'document_name',
Code:arrrrrrray ( 'name' => 'document_name',


LinkBack URL
About LinkBacks



Reply With Quote


Bookmarks