id stringlengths 14 16 | text stringlengths 33 5.27k | source stringlengths 105 270 |
|---|---|---|
5971a67c09e4-1 | To load a JSGroupings file for a custom module, simply add a new JSGrouping and then include the JavaScript file for your custom handlebars template. You can also append to an existing grouping, such as ./include/javascript/sugar_grp7.min.js, to include the code globally.
Properties
The following extension properties a... | https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Architecture/Extensions/JSGroupings/index.html |
5971a67c09e4-2 | The following sections illustrate the various ways to implement a customization to a Sugar instance.
File System
Creating New JSGroupings
When working directly with the filesystem, you can create a file in ./custom/Extension/application/Ext/JSGroupings/ to add or append Javascript to JSGroupings in the system. The foll... | https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Architecture/Extensions/JSGroupings/index.html |
5971a67c09e4-3 | );
Next, create the Javascript files that will be grouped as specified in the JSGrouping definition above:
./custom/file1.js
function one(){
//logic
}
./custom/file2.js
function two(){
//logic
}
Next, navigate to Admin > Repair > Quick Repair and Rebuild. The system will then rebuild the extensions and compile ... | https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Architecture/Extensions/JSGroupings/index.html |
5971a67c09e4-4 | Appending to Existing JSGroupings
In some situations, you may find that you need to append your own JavaScript to a core Sugar JSGrouping. Similarly to creating a new JSGrouping, to append to a core JSGrouping you can create a new PHP file in ./custom/Extension/application/Ext/JSGroupings/. The example below demonstrat... | https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Architecture/Extensions/JSGroupings/index.html |
5971a67c09e4-5 | {
//if the target grouping is found
if ($target == 'include/javascript/sugar_grp7.min.js')
{
//append the custom JavaScript file
$js_groupings[$key]['custom/file1.js'] = 'include/javascript/sugar_grp7.min.js';
}
break;
}
}
Next, navigate to Admin > Repair... | https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Architecture/Extensions/JSGroupings/index.html |
5971a67c09e4-6 | Installdef Properties
Name
Type
Description
from
String
The basepath of the file to be installed
to_module
String
The key for the module where the file will be installed
The example below demonstrates the proper install definition that should be used in the ./manifest.php file to add the JSGrouping Extension file to th... | https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Architecture/Extensions/JSGroupings/index.html |
5971a67c09e4-7 | ...
);
$installdefs = array(
'id' => 'jsGroupings_Example',
'jsgroups' => array(
array(
'from' => '<basepath>/Files/custom/Extension/application/Ext/JSGroupings/<file>.php',
'to_module' => 'application',
)
),
'copy' => array(
array(
'from' => '... | https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Architecture/Extensions/JSGroupings/index.html |
5971a67c09e4-8 | )
)
);
Alternatively, you may use the $installdefs['copy'] index for the JSGrouping Extension file. When using this approach, you may need to manually run repair actions such as a Quick Repair and Rebuild. For more information on the $installdefs['copy'] index and module-loadable packages, please refer to theÂ... | https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Architecture/Extensions/JSGroupings/index.html |
d9f2cd6845b2-0 | UserPage
Overview
The UserPage extension adds sections to the User Management view.
Properties
The following extension properties are available. For more information, please refer to the Extension Property documentation.
Property
Value
Extension Scope
Module: Users
Extension Directory
./custom/Extension/modules/Users/... | https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Architecture/Extensions/UserPage/index.html |
d9f2cd6845b2-1 | ./custom/Extension/modules/Users/Ext/UserPage/<file>.php
<?php
$HTML=<<<HTML
<table cellpadding="0" cellspacing="0" width="100%" border="0" class="list view">
<tbody>
<tr height="20">
<th scope="col" width="15%">
<slot>Header</slot>
</th>
... | https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Architecture/Extensions/UserPage/index.html |
d9f2cd6845b2-2 | </tbody>
</table>
HTML;
echo $HTML;
Navigate to Admin > Repair > Quick Repair and Rebuild. The system will then rebuild the extensions and compile your customization into ./custom/modules/Users/Ext/UserPage/userpage.ext.php
Module Loadable Package
When building a module loadable package, you can use the $instal... | https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Architecture/Extensions/UserPage/index.html |
d9f2cd6845b2-3 | ./manifest.php
<?php
$manifest = array(
...
);
$installdefs = array(
'id' => 'userPage_Example',
'user_page' => array(
array(
'from' => '<basepath>/Files/custom/Extension/modules/Users/Ext/UserPage/<file>.php',
)
)
);
Alternatively, you may use the $installdefs['copy'] index ... | https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Architecture/Extensions/UserPage/index.html |
ed134d14e51a-0 | Backward Compatibility
Overview
As of Sugar® 7, modules are built using the Sidecar framework. Any modules that still use the MVC architecture and have not yet migrated to the Sidecar framework are set in what Sugar refers to as "backward compatibility" (BWC) mode.
For the list of Studio-enabled modules in backward co... | https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Architecture/Backward_Compatibility/index.html |
ed134d14e51a-1 | You can see that this differs from the standard route of:
http://{site url}/#<module>/<record id>
Studio Differences
There are some important differences between the legacy MVC modules and Sidecar modules. When a module is in backward compatibility mode, an asterisk is placed next to the modules name in Studio. Modules... | https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Architecture/Backward_Compatibility/index.html |
ed134d14e51a-2 | Layouts
Record View
List View
Search
Search
TopicsEnabling Backward CompatibilityHow to enable backward compatibility for modules.Converting Legacy Modules To SidecarHow to upgrade a legacy module to be Sidecar enabled.
Last modified: 2023-02-03 21:04:03 | https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Architecture/Backward_Compatibility/index.html |
346848d16596-0 | Converting Legacy Modules To Sidecar
How to upgrade a legacy module to be Sidecar enabled.
Overview
After upgrading your instance to Sugar 7.x, some custom modules may be left in the legacy backward compatible format. This is normally due to the module containing a custom view or file that Sugar does not recognize as b... | https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Architecture/Backward_Compatibility/Converting_Legacy_Modules_To_Sidecar/index.html |
346848d16596-1 | The following steps require access to both the Sugar filesystem as well as an administrative user.
Note: As of Sugar 10.0, the UpgradeModule.php script has been removed from the codebase. We are providing a zip of the files that were removed so that it is still possible to run the upgrade.
Begin by downloading this z... | https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Architecture/Backward_Compatibility/Converting_Legacy_Modules_To_Sidecar/index.html |
346848d16596-2 | Next, change to the ./modules/UpgradeWizard/ path relative to your Sugar root directory in your terminal or command line application:cd <sugar root>/modules/UpgradeWizard/
Run the UpgradeModule.php script, passing in the sugar root directory and the unique key of the legacy module:php UpgradeModule.php <sugar roo... | https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Architecture/Backward_Compatibility/Converting_Legacy_Modules_To_Sidecar/index.html |
346848d16596-3 | Once completed, log into your instance and navigate to Admin > Repair > Quick Repair and Rebuild. Test the custom module to ensure it is working as expected. There is no guarantee that the module will be fully functional in Sidecar and may therefore require additional development effort to ensure compatibility.
L... | https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Architecture/Backward_Compatibility/Converting_Legacy_Modules_To_Sidecar/index.html |
eba8675a1f4a-0 | Enabling Backward Compatibility
Overview
How to enable backward compatibility for a module.
Enabling Backward Compatibility
Backward Compatibility Mode is not a permanent solution for modules with legacy customizations. If you should need to temporarily get a module working due to legacy customizations, you can follow ... | https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Architecture/Backward_Compatibility/Enabling_Backward_Compatibility/index.html |
eba8675a1f4a-1 | <?php
$bwcModules[] = '<module key>';
Once the file is in place, you will need to navigate to Admin > Repair > Quick Repair and Rebuild. The Quick Repair can wait until you have completed the following sections for this customization.
Verifying BWC Is Enabled
To verify that backward compatibility is enabled, you can in... | https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Architecture/Backward_Compatibility/Enabling_Backward_Compatibility/index.html |
eba8675a1f4a-2 | Using Firebug in Google Chrome or Mozilla Firefox
Open Firebug
Select the "Console" tab
Run the following command, replacing <module key>, and verify that it returns true:
App.metadata.get().modules.<module key>.isBwcEnabled
Last modified: 2023-02-03 21:04:03 | https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_13.0/Architecture/Backward_Compatibility/Enabling_Backward_Compatibility/index.html |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.