Superfluous
Member
I'm just starting to try get my head around developing add ons. I've created an Event Listener which hooks a new template onto the existing 'message' template. In this existing template it inherits the variable $post from a loop in the parent 'thread_view' template (structure is 'thread_view' -> 'post' -> 'message').
Whenever I append my new template via my PHP file the $post variable is no longer accessible (presumably '$template->create' processes the template separately from the template I'm trying to hook on to). Whenever I manually include the new template in the 'message' template it works fine.
What am I doing wrong?
Whenever I append my new template via my PHP file the $post variable is no longer accessible (presumably '$template->create' processes the template separately from the template I'm trying to hook on to). Whenever I manually include the new template in the 'message' template it works fine.
What am I doing wrong?