Contributing to SuiteCRM

One of the great things about SuiteCRM is that it’s open source. This means that, if you find a bug, not only can you fix it but you can also share that fix with the world. This post will briefly cover how to go about contributing a SuiteCRM fix ...

more ...

Creating a custom field type in SuiteCRM

Like a lot of SuiteCRM the field types are customisable and you can add your own types of fields. This post will explain how to add a colour picker as a custom field type.

First off we need to add the option to studio to allow creating fields of our ...

more ...

Setting up SuiteCRM on Digital Ocean

This post will cover deploying an instance of SuiteCRM to Digital Ocean from creating the droplet to logging into SuiteCRM. If there’s enough interest I’ll do similar guides for other hosts.

First you’ll need a Digital Ocean account. If you don’t have one it’s easy ...

more ...

SuiteCRM Super Logger

I’ve previously created a very simple module for SuiteCRM which adds coloured logging (SuiteCRM Colour Logger). I’ve now expanded it somewhat to add extra features.

It’s now called SuiteSuperLogger and allows specifying the log format in the config.

Enabling coloured logging can be done by adding

$sugar_config ...
more ...

SuiteCRM Creating an Alert

With the release of SuiteCRM 7.3 comes Alerts. These are displayed within SuiteCRM as a small badge in the menu bar. I.e:

SuiteCRMAlerts0

Since these are just stored as beans we can add notifications by simply creating a new record with the appropriate values and saving it. For example ...

more ...

PHP Syntax Checking

The CLI to php allows checking for syntax errors using php -l I’ve created a very basic script which will recursively check folders for php files with syntax errors. It’s intended to quickly show syntax errors in a large application. It’s available here: https://github.com/JimMackin ...

more ...

Adding custom module to related to field in SuiteCRM

Sometimes when you create a new module you want it to appear in the “Related To” dropdowns around SuiteCRM. This post will cover the simple method of adding modules to these dropdowns.

In this post we’ll add a fictional “Sport” module to the dropdown. We’ll end up with ...

more ...

Make a custom module importable

If you’ve created a custom module but are getting the message “Imports aren’t set up for this module type” then it’s very easy to add this functionality to your custom module.

In the bean file modules/ABC_Your_Module/ABC_Your_Module.php simply add the line

var $importable = true;

After ...

more ...

SuiteCRM Missing Field Definitions

If you move instances of SuiteCRM around it’s possible to have a copy of the SuiteCRM files that reference a custom field that doesn’t exist in the fields_meta_data table.

This can cause broken SQL queries since SuiteCRM will try to reference a field but won’t have it ...

more ...