AnsweredAssumed Answered

How to create a layout for a custom module in Sugar 7?

Question asked by Jason Eggers on Feb 13, 2014
Latest reply on Jan 17, 2020 by M kumar
Adding a new layout/view for a custom module in SugarCRM 7 and following the guide here:

But tweaked for a module instead of system-wide. When I repair and hit the desired URL (/#CoolModule/layout/setup) it is blank and I noticed that the layout/view is not being cached in /cache/modules/CoolModule like it does for other modules.

$viewdefs['CoolModule']['base']['layout']['setup'] = array(
    'type' => 'simple',
    //'span' => 12,
    'components' =>
            'view' => 'setup',
    className: 'setup tcenter',

    loadData: function (options) {

<h1>My Setup View</h1>

do something!

Any help would be greatly appreciated!