Feature #1003

{{env::page_language}} insert tag

Added by cyril 12 months ago. Updated 12 months ago.

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

Updated by leo 12 months ago

  • Category changed from frontend to framework
  • Status changed from New to Accepted
  • Target version set to 2.7.4

Updated by leo 12 months ago

  • Status changed from Accepted to Completed

Also available in: Atom