On our previous setup of itop version 2.7, we were able to change the format of the printer friendly version of a Problem Management ticket using a custom extension. Please see attached image for the sample friendly version. However, when we have upgraded to version 3.0.2, the printer friendly version is not being formatted at all.
We have a file 'resources-modifier.modulename.php' which contains the following:
<?phpclassPageUIExtensionimplementsiPageUIExtension{publicfunctionGetNorthPaneHtml(iTopWebPage$oPage){$oPage->add_linked_script(utils::GetAbsoluteUrlModulesRoot().'modulename/js/custom.js');}publicfunctionGetSouthPaneHtml(iTopWebPage$oPage){}publicfunctionGetBannerHtml(iTopWebPage$oPage){// Nothing to do}}?>
This php file is also part of the dependency in the module.modulename.php. I have also attached the custom.js file that we are using to format the output of the printer friendly version.
Is there any big changes from version 2.7 to version 3.0.2 of iTop that may have caused the issue? Thank you in advance.
Hello,
The page markup was modified a lot in iTop 3.0.0. I guess your custom script is using the page DOM structure, so it should be rewritten ?
Also, you might switch to css instead of a js file ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
On our previous setup of itop version 2.7, we were able to change the format of the printer friendly version of a Problem Management ticket using a custom extension. Please see attached image for the sample friendly version. However, when we have upgraded to version 3.0.2, the printer friendly version is not being formatted at all.
We have a file 'resources-modifier.modulename.php' which contains the following:
This php file is also part of the dependency in the module.modulename.php. I have also attached the custom.js file that we are using to format the output of the printer friendly version.
Is there any big changes from version 2.7 to version 3.0.2 of iTop that may have caused the issue? Thank you in advance.
Hello,
The page markup was modified a lot in iTop 3.0.0. I guess your custom script is using the page DOM structure, so it should be rewritten ?
Also, you might switch to css instead of a js file ?
You may also want to take a look at https://github.com/jbostoen/itop-jb-report-generator .