Htmlizer : custom helpers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • item
    Active Community Member
    • Mar 2017
    • 1476

    Htmlizer : custom helpers

    Hello,
    is possible to create a custom helper for htmlizer ? include path maybe in upgrade safe ?

    Htmlizer.php
    line : 239
    sample :

    PHP Code:
    'secondsToHHmm' => function ($context, $options) {
           $hours = floor($context[0] / 3600);
           $minutes = floor(($context[0] / 60) % 60);
           return $hours .',' .$minutes;
    } 
    
    If a custom include path exist, that will be very cool !
    Here a possible function that will be useful :


    this will be great if we can add like custom "formula".. without extend pdf entrypoint and htmlizer and pdf service.

    Cheers
    Last edited by item; 02-10-2019, 09:17 PM.
    If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​
Working...