mittwald / typo3-web2pdf

A TYPO3 extension for rendering content as PDF
GNU General Public License v2.0
18 stars 20 forks source link

Support needed after update to templavoila plus 8 #132

Closed derBoogie closed 1 year ago

derBoogie commented 1 year ago

I'm using templavoila plus (TVP) on one of my websites. After the update to version 8 of TVP, I need some help to adjust my user_function to work with web2pf.

public function getChildTemplate(array $conf, &$pObj)
{
    $result = '';
    if (isset($conf['conf']['value']) && $conf['conf']['value'] = 'pdf')
    {
        $toRec = $pObj->markupObj->getTemplateRecord($conf['toRecord']['tx_templavoilaplus_to'], $conf['conf']['value'], $GLOBALS['TSFE']->sys_language_uid);
        if (is_array($toRec))
            $result = $conf['conf']['value'];
    }

    return $result;
}

Before the update of TVP $conf['toRecord']['tx_templavoilaplus_to'] was the uid of the HTML template record. Now TVP is organized in yaml config files and the database tables no longer exist.

My question is how to load the HTML template for the pdf generator?

derhansen commented 1 year ago

Since the issue is related to changes in templavoila plus, I suggest to ask for help either in TYPO3 Slack or GitHub Issues of the project (https://github.com/T3Voila/templavoilaplus)

derBoogie commented 1 year ago

I'm closing this issue, because the used function getChildTemplate is obsolete.