Include template-code from prosilver in own template without copy the text

For support and discussion related to templates and themes in phpBB 3.3.
Post Reply
cangor
Registered User
Posts: 74
Joined: Thu Oct 28, 2010 1:56 pm

Include template-code from prosilver in own template without copy the text

Post by cangor »

Hello,

I'm trying to add something to the template in prosilver/templates/navbar_footer.html. So in 3.2. I was able to write my own style "Mystyle" in mystyle/templates/navbar_footer.html and include the prosilver-code, like:

Code: Select all

<!-- INCLUDE ../../prosilver/template/navbar_footer.html -->

<div class="..." role="navigation">
<a href="/">Back to main page</a>
<p>This is my own text under the prosilver navbar_footer!</p>
</div>
This way I could profit from updates of the prosilver-theme without changing anything of my template-code.

I now updated to 3.3. and get errors like:
Fatal error: Uncaught Twig\Error\LoaderError: Looks like you try to load a template outside configured directories (../../prosilver/template/navbar_footer.html) in "navbar_footer.html" at line 1.

Yes, I know I could just copy&paste the code from prosilver into my template, but I would have to do this with every update. Any ideas how including might work again here?

Post Reply

Return to “[3.3.x] Styles Support & Discussion”