Metadata module settings block override

Hello all,

I have override the select block “admin_module_config_var_type_select” (module_config.tpl) in my custom module but it’s affected for other modules too.

Could anyone please provide the feedback/suggestion to handle only for our custom module.

Thanks in advance

you can access the selected Module in the $oModule variable, so you can check its ID and serve your own content if selected module id equals your module’s id.

[{if $oModule->getInfo('id') === "my_module"}]
  your custom html
[{else}]
  [{* all other modules get default block content *}]
  [{$smarty.block.parent}]
[{/if}]
1 Like

Hi vanilla_thunder,

Thanks for your quick response. Now it working fine.