The current query rewriting feature is a bit rough atm. Some possible improvements are:
- Allow query string parameters to override general settings, this should be useful for autocomplete fields that may or may not be using the current page language. It may look like ?i18nmode=mixed&language=es
- Allow different rewriting for the node form and for the rest of the page. The current mode is overridden when creating or translating nodes, but this affects blocks and other UI elements too, it should be independent of the rest of the page.
- Different mode for taxonomy. Currently the same mode applies for nodes and for taxonomy which doesn't always work well (The mixed option doesn't work well with multilingual vocabularies). Having a different setting for taxonomy may work better.
Comments
Comment #1
jose reyero commentedWorking on this one. We need a more flexible query rewriting to support a lot of modules and feature requests.
Comment #2
ao2 commentedHi, any plans to fully support nested queries? Now the rewrite can be broken in some cases, see #369629: db_rewrite_sql breaks on sql having "order by" clause.
Comment #3
ao2 commentedping
Comment #4
jose reyero commentedPlease see #1252494: Create a new module for complex query altering (mixed mode) language selection.