A long time ago we had a post on adding new entrypoints ( one of my first posts on this very blog 🙂 ), and back then there wasn’t a very clean way to add entrypoints via a package without potentially stepping on other custom defined entrypoints. After having a few people ask questions about this, I thought I’d throw together a more complete post illustrating all the pieces of the package to make this work using the Ext Framework pieces added in SugarCRM 6.3.
First let’s define both the entrypoint itself ( which we’ll put in the myentrypoint.php file ) as well as the entrypoint registry definition ( in the myentrypoint_registry.php file ).
Now comes the manifest definition. Here we will add an entry in the installdefs ‘entrypoints’ which will define where the source of the entrypoint registry file additions should come from. This registry file we defined above will then be put in the custom/Extension/application/Ext/EntryPointRegistry/ directory, and after the package is installed will be combined with any existing entrypoint registry files into the custom/application/Ext/EntryPointRegistry/entry_point_registry.ext.php file.
You then will be able to access your entrypoint at the URI index.php?entryPoint=myentrypoint.