I recently followed a tutorial by Alan Storm (link) to create my own module. The goal was to create a page to show non-SugarCRM data but within SugarCRM. It worked however I also need to add some JavaScript to the HEAD section. Any ideas?
The directions were to create a module under “/modules/MODULENAME/views/view.list.php” with the following code:
class SPSReportExpansionStatusViewList extends SugarView
{
public function display()
{
echo '<h1>Hello World</h1>';
}
}
I’ve looked at some other tutorials where adding custom JavaScript was not a problem however it was to pre-existing modules such as the Opportunity module.
creating/editing the following files did NOT seem to work either:
/modules/MODULENAME/metadata
editviewdefs.php, listviewdefs.php, metafiles.php