They do the same thing, The first is for phpBB's custom template engine and the second is for Twig. I would presume at some point the phpBB syntax will disappear,
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”
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.
CarolC1 wrote: Wed Oct 30, 2024 1:41 am
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.
Did you purge the cache in the ACP after creating that file?
The phpBB template code is converted to twig before render, so twig is not the issue.
You were absolutely right. I must not have. I redid it again using the Twig style event in Viewforum and made sure to (duh!) purge the cache, and it worked perfectly. Thank you!