When I call my custom module from the index.php of my template, the $params variable in the modules.php, with my module settings from the backend, stays empty. So I cannot access the module parameters. Here is the module activation of my index.php:
$module = JModuleHelper::getModule('mod_custom_module','CustomModule');
$attribs['layout'] = 'startpage';
echo JModuleHelper::renderModule($module, $attribs);
The module gets loaded, but I cannot access my parameters from the backend settings. Whats wrong here?