Does anyone have an idea of how to assign a css class of "active" (or "current" or the like) to the chosen language, much like how its done in Wayfinder with the &hereClass parameter?
It would be nice to be able to hilite the current language.
-
☆ A M B ☆
- 455 Posts
The problem with Chunks and TVs is processing their data after running plugins. When the plugin invoked, document tags has not yet recognized for MODx.
The plugin can not invoked after traslating tags because chunks and tvs can have nested tags that after translating, it’s not possible to access to last-level data.
Doing that is possible by some hacks in MODx DocumentParser.
Thanks for coding and sharing this extra with the community.
I have a question about its usage. Assume some documents are available 2 languages and some only in the default language. It would be cool to have Easylingual fallback to the default language.
Say I add a checkbox so set a document language active or inactive. Could I use the plugin to detect this and fall back to default?