Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 2204

[3.3.x] Styles Support & Discussion • Re: Style skeleton for prosilver

$
0
0
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:

Code:

{% include 'prosilver/template/overall_header.html' %}
This gives error(prosilver2/ is test child style):

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"
Presumably it's looking in the various directories with 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.

You cannot include the overall_header.html in another overall_header.html, it makes no sense.
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.

Statistics: Posted by thecoalman — Tue Mar 11, 2025 3:54 am



Viewing all articles
Browse latest Browse all 2204

Trending Articles