In Country Code module, we added an alternative language filter that provides a fallback for languages, i.e. the filter says "show me all content for the current language (e.g., fr-CA) and as a fallback any content for a two-digit version of that language (fr)". Later we decided this filter has not to do with country, hence it needs to be elsewhere.

Would this be considered as a feature for views? Or should we go with a new project/module?

The module code is here.

Comments

nedjo’s picture

A major issue I guess is that the filter depends on translation module and requires custom indexes. I don't know that there's an effective way for views to add indexes to a table that may not exist when views is installed.

merlinofchaos’s picture

In fact, Views will absolutely not modify core tables, even to add indices. Which kind of sucks, but if that's a requirement it can't be in core Views. It may be something that should be a small module unto its own, perhaps.

catch’s picture

Status: Active » Closed (won't fix)

I think that makes this won't fix - the proper place would be in translation module, but that's in core of course.