Feature #1003
{{env::page_language}} insert tag
| Status: | Completed | Start: | ||
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assigned to: | leo | % Done: | 0% |
|
| Category: | framework | |||
| Target version: | 2.7.4 |
Description
Hi Leo,
I know that this request has often been made (I've already done : http://www.typolight.org/forum/message/25142.html)
It's easy to use language; ?> into a template, but not easy into a content element (like HTML content) or a module.
eg : I want to change a flash module source based on the page language. Currently I can create a module for each language, and a layout for each language... not so easy to maintain... and when I dd a new language, I must do the same.
or, I can use {{iflng::LN}} insert tag on flash module external source like that :
{{env::path}}tl_files/themes/myFlash/banner{{iflng::en}}_en{{iflng}}{{iflng::it}}_it{{iflng}}{{iflng::fr}}_fr{{iflng}}.swf
but when I add a new language I must think to add this new one. Later it's hard to remember where we must change something :)
...
I hope that my request might interest other people.
History
Also available in: Atom