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

jose reyero’s picture

Assigned: Unassigned » jose reyero
Priority: Normal » Critical

Working on this one. We need a more flexible query rewriting to support a lot of modules and feature requests.

ao2’s picture

Hi, 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.

ao2’s picture

ping

jose reyero’s picture

Component: Code » Blocks
Status: Active » Closed (won't fix)