# 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 &amp;&amp; $lastname.length() &gt; 0)}{if ($firstname &amp;&amp; $firstname.length() &gt; 0)}{$lastname}, {$firstname}{else}{$lastname}{/if}{elseif ($firstname &amp;&amp; $firstname.length() &gt; 0)}{$firstname}{elseif $email &amp;&amp; $email.length() &gt; 0 &amp;&amp; $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.

Request missing documentation