Note the HTML comment like syntax is phpBB's custom template engine syntax which is being replaced by Twig syntax. You can still use either but I would use Twig for future proofing.
I poked around a little in the Twig documentation and doesn't appear to be anyway to do what you want to do with same filename because the root filepath is set as Cabot mentioned. Twig doesn't recognize the ../ and you just use the file or path like this:
This gives error(prosilver2/ is test child style):
Presumably it's looking in the various directories with
I poked around a little in the Twig documentation and doesn't appear to be anyway to do what you want to do with same filename because the root filepath is set as Cabot mentioned. Twig doesn't recognize the ../ and you just use the file or path like this:
Code:
{% include 'prosilver/template/overall_header.html' %}
Code:
Unable to find template "prosilver/template/overall_header.html" (looked into: C:\xampp\htdocs\test\styles\prosilver2\template, C:\xampp\htdocs\test\styles\prosilver2\theme, C:\xampp\htdocs\test\styles\prosilver\template, C:\xampp\htdocs\test\styles\prosilver\theme, C:\xampp\htdocs\test\styles\all\template) in "overall_header.html"
prosilver/template/overall_header.html
appended. If there is anyway to do this it will be found in Twig documentation. Otherwise copying overall_header.html and renaming it like you already did appears to be one way to do it. It makes perfect sense if you just want to just append or prepend some HTML to original template. It's because of things like this I prefer to just edit Prosilver for my own customized style. I'm not publishing it so there really isn't any benefit to using child style.You cannot include the overall_header.html in another overall_header.html, it makes no sense.
Statistics: Posted by thecoalman — Tue Mar 11, 2025 3:54 am