# Create module
# Create configuration file
Creating and configuring new modules is done by storing a 'setup.xml' configuration file and reloading/restarting the MAM.
The file can be stored in the following folders:
for new standard modules configured in a 4App
cmconfig-4app/modules/[module]/setup.xml
for customer modules
custom/modules/[module]/setup.xml
As an example the configuration of the module 'contact'
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<module>
<friendlyname_template>{if ($lastname && $lastname.length() > 0)}{if ($firstname && $firstname.length() > 0)}{$lastname}, {$firstname}{else}{$lastname}{/if}{elseif ($firstname && $firstname.length() > 0)}{$firstname}{elseif $email && $email.length() > 0 && $email[0]}{$email[0]}{/if}</friendlyname_template>
<create_table>true</create_table>
<enable_tree_structure>false</enable_tree_structure>
<show_in_role_config>true</show_in_role_config>
<assigneduser_validation>false</assigneduser_validation>
<additional_permission_user>false</additional_permission_user>
<additional_permission_role>false</additional_permission_role>
</module>
Use snap-in Module configuration/Module definition
to change basic technical settings for this module.