Quantcast
Viewing all articles
Browse latest Browse all 2508

Extension Writers Discussion • Can someone explain template change on event to me?

So I have an extension I'm working on (add a filter to the viewforum_body.php) that lets you filter topics based on a tag/assigned category.

I've found an event that is called within viewforum_body.php, and have my extension calling a function off the back of that event, with the goal that the function will insert the filter control within viewforum_body.php.

Question is, I don't want to edit the core style viewforum_body.php to include a {filtercontrol} tag, so how do I get the filter control that the function places to appear on viewforum_body.php?

I've tried creating a new version of viewforum_body.php with the tag in it inside of my extension (ext/author/filtertopics/styles/all/viewforum_body.php) but:

1. I can't get that to work and replace the default extension, and
2. I don't want to replace the file like that for fear of clashing with other extensions

So how does one go about inserting something on an existing front end page on-event, in the right place, without having to edit the existing page to include a tag to take the input?

Really grateful for any support on this.

Thanks?

Statistics: Posted by stubbo79 — Tue Sep 17, 2024 1:17 pm



Viewing all articles
Browse latest Browse all 2508

Trending Articles