Language
Smart Content Filter works with Joomla multilingual sites. It does not ship a separate translation system for UI labels; it uses core Joomla language features.
Filter by Current Language
On Content Source, keep Filter by Current Language enabled (default Yes) when the site has more than one language.
- Articles must match the active page language or be set to All.
- Since an earlier update, the tag filter also follows that rule: only tags used by those articles appear, and each tag Language must be All or the active language.
Tags (Spanish and English on one module)
- Use separate Spanish and English articles (normal Joomla multilingual content).
- Create Spanish and English tags under Components > Tags and set each tag Language.
- Attach Spanish tags only to Spanish articles, and English tags only to English articles.
- Assign the same Smart Content Filter module to both language menus.
- Clear Include Tags if you only used it to hide the other language.
Joomla Tags do not have Multilingual Associations like Categories. Tag Language plus article language is the supported approach.
Keep the open category when the visitor switches language
On multilingual sites that use the Cards style, the category that is open can stay open after the visitor switches language. The other language's module opens the matching category. If there is no match, the normal category cards show, with no error. Single-language sites are not affected.
The open category is kept when the visitor switches language shortly after (within a couple of minutes). A link that already names a category, such as ?scf_{moduleId}_cat={categoryId}, still opens that category. Back, Forward and Reload keep each page as it was.
Equivalent categories are found in two ways:
- Joomla Associations: In Content: Categories, open each category and use the Associations tab to link it to the same category in the other language. In the Language Filter plugin (System: Plugins), set Item Associations to Yes.
- Category Language Mapping: When the categories are not associated, open a Smart Content Filter module, go to the Filters tab, and enter one line per pair of equivalent category IDs, for example
12 = 45. A line can list more than two IDs. Use the ID column in Content: Categories. The lines are shared by all Smart Content Filter modules on the site, so you can enter them once in one module.
Keep Category on Language Switch (default Yes) is shown only when Category Filter Style is Cards. Set it to No to turn this off for that module.
Translate filter labels (Language Overrides)
Labels such as Filters, Search, Tag, From, To, Sort, and Showing X of Y come from module language constants. Translating them is a core Joomla workflow:
- Go to System > Manage > Language Overrides.
- Select the frontend language (for example Spanish).
- Create an override for each constant (for example
MOD_SMARTCONTENTFILTER_SEARCH_LABEL). - Save, clear cache, and hard-refresh.
Find the exact constant name
- System > Global Configuration > System.
- Set Debug Language to Yes and save.
- Open the frontend module page and read the constant next to each label.
- Copy that constant into Language Overrides.
- Set Debug Language back to No when finished.
Leave Debug System off unless you need it, so the page stays readable.
Common Sort constants
MOD_SMARTCONTENTFILTER_SORT_NEWEST: NewestMOD_SMARTCONTENTFILTER_SORT_OLDEST: OldestMOD_SMARTCONTENTFILTER_SORT_HITS: Most viewedMOD_SMARTCONTENTFILTER_SORT_ORDERING: Manual orderingMOD_SMARTCONTENTFILTER_SORT_MODIFIED: Recently updatedMOD_SMARTCONTENTFILTER_RESULTS_COUNT: Showing {showing} of {total} (keep the placeholders)
Constant names do not always match the English words. Prefer Debug Language when unsure.