Hi all.
I’m using Versión 8.8.0 .
I modified detailviewdefs.php ,but cannot see new menu option.
Someone know how we need to do this customization on 8.8.0?
Thanks
Did you add new fields in the custom module?
You can add them via studio too.
How can I show fields from a custom module (based on Person) to appear in the PDF template designer?
Cheers
I created the fields in the Module Builder.
I need to use the fields in my module to print a PDF template.
I’ve already added my module as a Type in the PDF Templates.
But I can’t add the button to send my records from the new module to print in the templates.
Sorry, do not know for v8.8
Hi
I am learning how to generate a pdf template in custom module. For learning simplicity, Im using the Accounts module. So, i have its files in /var/www/html/democrm/custom/modules/Accounts.
Now to generate PDF I have added a button to the bottom of the create account page as shown in the screen shot.
Here is the list of steps ive completed:
In the file /var/www/html/democrm/custom/modules/Accounts/language/en_us.lang.php I’ve added 'LBL_PRINT_AS_PDF' => 'Generate PDF' , label.
Ive add…
Hello guys,
i’ve installed the new version of suitecrm 8 and i’m trying to add a new button in the account detailview page. In custom/modules/Accounts/metadata/detailviewdefs.php i added this code:
[image]
but after a quick repair nothing is changed. i tryied to logout, but nothing compare.
what do i missed? Can someone help me? i realy don’t understand
Regards,
Patryk
Hello Ignacio,
in order to make a PDF on a custom Suite 8 module work, you’ll have to basically do two things:
Add the PDF functionality including the link for the action menu
Make the module a legacy view module (via the module routing)
Check out these links for more details:
Hello,
I am trying to adapt old (SuiteCRM 7.x) custom module to new (SuiteCRM 8.x) CRM. It seems all fine, but there is one thing that is making issue (doesn’t load module legacy list view). I added module_routing.php file to ../../extensions/<module_name>/config/module_routing.php path to load module legacy listview and is working good, but if I enable PackageScanner or try to upload module to SuiteCRM Store it’s not allowed, because of ../../.
According to SuiteCRM 8.x documentation (Extensi…
Thanks, I made change on detailviewdef.php and with this changes, work perfect
For custom modules, we can update/create the file in given location if not exist.
/var/www/html/ProjectName/extensions/defaultExt/config/module_routing.php
<?php
use Symfony\Component\DependencyInjection\Container;
if (!isset($container)) {
return;
}
/** @var Container $container */
$routes= $container->getParameter('legacy.module_routing') ?? [];
$routes['custom_module'] = [
'index' => false,
'list' => false,
'record' => false
];
$container->setParameter('legacy.module_routing', $routes);