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

[3.3.x] Styles Support & Discussion • Re: What does {% and %} indicate about an event?

$
0
0
Thank you! It looks a bit advanced, but I'll at least give it a look. I know extension support is found in the Customise section, and my question is already answered, but I will explain what was going on. I have a validated extension written by someone else that creates a box element in a certain place on the index. I moved the box to display in another location by renaming the .html file found in the extension folder styles/prosilver/template/events to the name of an event that was located in the index template about where I wanted to locate the box, and the box showed up there. So that was on the index. So then I wanted to get the box showing in viewforum. The only event in the right area of viewforum to hook into was one of the (as explained above) Twig events(?), and when I used its name the box did not show. I tried again to be sure it wasn't a simple renaming error, but it still did not show. I finally ended up copying the code for the box right into viewforum.html so it is showing where I wanted it. I'll have to remember to update that code if we upgrade the extension. But it looks nice. So what I'm thinking is, the Twig event does not work the same way as the phpBB custom template engine event when you are trying to "plug" or "hook" your element into a different place in the template. Either way, I'm just happy it's working now. Did not mean to turn this into a styles support topic. Thanks again.

Statistics: Posted by CarolC1 — Wed Oct 30, 2024 1:41 am



Viewing all articles
Browse latest Browse all 567

Trending Articles