Although the base concept is professional not possible to build header tags, inner styles or scripts in HTLM header from content modules when build processes.
For this problem the solution was paralell installing header_tag modules into the core. :collision: ?
:gear:
As we see this above logic is not reasonable to use template class as required. Not possible to inject header_tags.
More logic if something like would be used below, when getContent() is above _templatetop.php and display content modules from class saved array:
Hi Community, :family_man_woman_girl_boy:
Although the base concept is professional not possible to build header tags, inner styles or scripts in HTLM header from content modules when build processes. For this problem the solution was paralell installing header_tag modules into the core. :collision: ?
There are some rocks before the required functionality. First obstruction is that the template content managment is critcal build after _templatetop.php. Lets see the probem in _productinfo.php https://github.com/osCommerce/oscommerce2/blob/de0e97d15d43ac6a9a6cfb2847134a82a0148f2b/catalog/includes/OSC/Sites/Shop/Templates/Sail/template_top.php#L5
:gear: As we see this above logic is not reasonable to use template class as required. Not possible to inject header_tags. More logic if something like would be used below, when getContent() is above _templatetop.php and display content modules from class saved array:
This logic ensure in all content module's execute() function to use oscTemplate->addBlock() for header_tags include scripts, css or inject inline codes into html header. https://github.com/osCommerce/oscommerce2/blob/de0e97d15d43ac6a9a6cfb2847134a82a0148f2b/catalog/includes/classes/osc_template.php#L73-L75
I dont understand why is not seriously used.
Thanks attentions