$oscTemplate->addBlock in header_tags does not work in PI Module
Posted: Tue Jan 25, 2022 11:15 am
Hi all
i try to make a new PI Module (image gallery with swipping) and i need to have js and css code in the header
i tried:
but <tester> will not be put in header, if i change 'header_tags' to 'footer_scripts' it's inserted in the footer, but i need it in the header
i also tried this in _construct() but same result
in template_top.php there is the line:
so i really don't know why it's not inserted there
any ideas?
i try to make a new PI Module (image gallery with swipping) and i need to have js and css code in the header
i tried:
Code: Select all
function getOutput() {
global $oscTemplate;
$oscTemplate->addBlock('<tester>', 'header_tags');
}i also tried this in _construct() but same result
in template_top.php there is the line:
Code: Select all
echo $oscTemplate->getBlocks('header_tags');any ideas?