Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better event handling and more specific event definition #103

Open
shimondoodkin opened this issue Jul 8, 2011 · 0 comments
Open

Better event handling and more specific event definition #103

shimondoodkin opened this issue Jul 8, 2011 · 0 comments

Comments

@shimondoodkin
Copy link
Owner

After investigating some Addon potential I found that the behaviour of the events differs between the different pages. More specifically, in order to get the icon next to the header for itemReport.php (like with the Tree View) you set an event in the addon such that

{{{
$event[_GTD_ON_DATA]['itemReport'] = "myaddon.inc.php";
}}}

This, however, does not work for summary.php, listItems.php, or weekly.php. In fact, the gtd_handleEvent(_GTD_ON_DATA,$pagename); call doesn't take place in the same location on those pages, and the addons don't even seem to have been parsed prior to this call either.

Should the pages behave consistently for the _GTD_ON_DATA call, or should there be an additional event such as _GTD_AFTER_TITLE that could be used in its place?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant