When we recently added a feature to our upload scanner that checks the module zip for any missing files we unintentionally found a hidden gem. As many of you are familiar with, sometimes you just have to make a change that is specific to a certain version of SugarCRM. What many do in a case like that is to provide a zip file for that specific version (e.g. MyModule_for_6.5.9.zip). This can become hard to maintain over time.
Christian Knoll (creator of the Google StyleTheme) has a very clever way of dealing with this. In the manifest he takes advantage of the sugar_flavor and sugar_version global variables. Using these he is able to dynamically define what files to copy over based on the user’s current version.
So instead of a zip for each version, we are able to define what flavors and versions to support:
Then in the copy we can utilize the global vars:
This would then pull the appropriate version from the module zip’s file structure:
/copy/CE_6.5.7/... /copy/CE_6.5.8/... /copy/CE_6.5.9/... /copy/PRO_6.5.7/... /copy/PRO_6.5.8/... /copy/PRO_6.5.9/... ..and so on
This makes it much easier to maintain for multiple versions and flavors of SugarCRM. Unfortunately, it means we have some work to do to add support to the upload scanner for this method. Thanks Christian!
Dropdowns as Checkboxes
Turn multiple select fields into checkboxes. Long drop-downs are a nightmare to use when a list gets beyond a few options. Make your SugarCRM users' lives simplier by transforming these painful fields into a list of checkboxes with just a single line of code, thanks to this add-on.
Data Anonymizer for SugarCRM
Is data privacy your priority? Get a data-breach proof CRM system! Data Anonymizer is a tool designed to quickly encode data on your CRM instance, while preserving their diversity and relations between records. It allows you to quickly prepare a realistic instance for tests and demonstrations withou...
Sage 100 ERP (MAS 90 & 200) Professional
Automatically synchronize Sage 100 Standard ERP and Sage 100 Advanced ERP (MAS 90 and MAS 200) with your SugarCRM with bi-directional syncing of customers and products. Push sales history and open invoices into SugarCRM and quotes/orders to Sage.
- Show more addons