When using the following field in my module xml:


It gives me a list of all php files in the tmpl folder to select. I've noticed now that on the Standard Modules these names are listed (inside this selection) as language constants. On my Custom Module it only renders the filename (in lowercase) even if I use the same fieldtype as, for example used in mod_menu (xml above).

mod_menu: mod_menu field options

my module: enter image description here

What do I need to have there also the language constants and not just the name. Sidenote: in the mod_menu module the files are also just named "default.php" and collapse-default.php"

1 Answer 1


Nevermind - I've found now the Modulelayout.php file and row 145 explains what happens:

$text = $lang->hasKey($key = strtoupper($module . '_LAYOUT_' . $value)) ? Text::_($key) : $value;


So there needs to be a language key setted up in the correct format like MOD_MODULENAME_LAYOUT_*FILENAME*="Your Name" in the modules language file.

I've updated the docs...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.