Issue about Page developer/Metadata.adoc
Closed this issue · 3 comments
Page with Issue
https://docs.suitecrm.com/developer/metadata/#_subpaneldefs_php
What is wrong, less clear, or missing
under the last part of the documentation to create a custom function for a custom subpanel. example A1.
this line: array('import_function_file' => 'custom/modules/Cases/IncidentUtils.php',),
this imply you can put your custom function file in custom/modules/Cases/
however the function never get pick up and put into the file custom/application/Ext/Utils/custom_utils.ext.php
Proposed fixes and/or additions
to make this work the custom function file should be located in custom/Extension/application/Ext/Utils/
there may be other location to the store this file but I am not aware of it.
I don't see why we need to use a "utils" Extension like you suggest. Doesn't the example work as it currently stands?
We're already using a LayoutDefs extension, can't we simply reference a function anywhere (in this case, custom/modules/Cases/IncidentUtils.php
) to be used directly? It seems more straight-forward than what you suggest, and I don't see any downsides to it...
Hello, @septadev
The issue has been marked as stale because there has been no recent activity. It will be closed if no further activity occurs.
Thanks for your contributions.
Regards,
Serhii