PDF Template on Custom Module on 8.8 Version

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.


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

Hello Ignacio,

in order to make a PDF on a custom Suite 8 module work, you’ll have to basically do two things:

  1. Add the PDF functionality including the link for the action menu
  2. Make the module a legacy view module (via the module routing)

Check out these links for more details:

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);