251 Posts
Viktor Iwan
7 years ago
3
Topic

Hello Guys,

when i create a custom field plugin, i usually use label override, the problem in the language because it refers to COM_CCK_<label_name> instead of  PLG_CCK_<label_name>

my code usually something like this: 

echo JCckDev::renderForm( 'core_defaultvalue', @$options2['iconText'], $config, array( 'label'=>'Default Text', 'storage_field'=>'json[options2][iconText]' ) );

Any idea to make it works with PLG_CCK_<label_name> so i don't need to "force" reload the language file ?

Thanks

Get a VIP membership
4229 Posts
Kadministrator
7 years ago
2
Level 1

you can use COM_CCK_ .. using plg_ or com_ is just a convention

251 Posts
Viktor Iwan
7 years ago
1
Level 2

if i use COM_CCK_XXXXXX i need to override seblod's com_cck language files.. it is better if its not on COM_CCK.. instead PLG_ (field plugin scope) so when you make changes you only need to update field related language file instead core COM_CCK.. don't you think ?

4229 Posts
Kadministrator
7 years ago
0
Level 3

You can place COM_CCK_XXXXXX in the plugin language files, they work just fine :) Or you can use language overrides to avoid upgrade problems

Get a VIP membership