contao/test — Issue #197: Additional HOOKS to intercept existing Database queries in ALL modules (ouch!)
Author: importer
Created: 2011-11-29 04:43:23+00:00
State: open
Labels: Feature, frontend

This would be fantastic.

Add the ability to override (and therefore add) the default SQL query, by being able to add ordering and where clauses. When making extensions for existing extensions, its not possible to add an additional WHERE field=value, to the current module. This means that to update the calendar FE modules for a new parameter to WHERE for, you have to copy and rewrite ALL the calendar modules, which are a lot.

If the HOOK allows you to dynamically add WHERE and order parameters, or simply pass the SQL statement and return a modified version, then that would allow us to add additional query parameters.

Also, when outputting a modules variables, another HOOK to add your own variables (I saw something andreas said about all values are now passed to the template, which I'm not sure is the case). This will allows you to not only add additional query parameters, but then also make new variables available to existing templates, which we can then customize

--- _Originally created by thyon on October 17th, 2008, at 05:16pm (ID 197)_