Search found 45 matches

by rfdy
Thu May 01, 2014 7:08 pm
Forum: [3.1/Ascraeus] Merged Event Requests
Topic: core.posting_modify_template_vars correction
Replies: 18
Views: 29191

Re: core.posting_modify_template_vars correction

Also, we don't want to render a template in our extension, we want to use the existing template event.
by rfdy
Thu May 01, 2014 4:37 pm
Forum: [3.1/Ascraeus] Merged Event Requests
Topic: core.posting_modify_template_vars correction
Replies: 18
Views: 29191

Re: core.posting_modify_template_vars correction

We don't want to change the $template itself. We just want to assign more variables to it, so that our template event handler has access to them. Isn't that the point of the event, to modify the assigned variables before they get assigned?
by rfdy
Wed Apr 30, 2014 2:54 pm
Forum: [3.1/Ascraeus] Merged Event Requests
Topic: core.posting_modify_template_vars correction
Replies: 18
Views: 29191

Re: core.posting_modify_template_vars correction

We would really rather not rely on global variables. The event name implies making changes to the template array, if this is really so undesirable, then you might as well rename the event. But realistically, we don't see why passing the template array into the event before it gets assigned to the te...
by rfdy
Fri Apr 25, 2014 6:04 pm
Forum: [3.1/Ascraeus] Merged Event Requests
Topic: core.posting_modify_template_vars correction
Replies: 18
Views: 29191

Re: core.posting_modify_template_vars correction

A part of our extension adds additional fields to the post field, the options are retrieved in the extension backend and need to be assigned to the template variable so that they are available to the html template on display. The core.posting_modify_template_vars event seems to be appropriately name...
by rfdy
Fri Apr 25, 2014 3:11 pm
Forum: [3.1/Ascraeus] Merged Event Requests
Topic: core.posting_modify_template_vars correction
Replies: 18
Views: 29191

Re: core.posting_modify_template_vars correction

This Jira for this can be found here: https://tracker.phpbb.com/browse/PHPBB3-12391

But it looks like the current resolution doesn't address the template variable issue.