FAQ Directory Custom external modules: Difference between revisions
mNo edit summary |
mNo edit summary Tag: 2017 source edit |
||
| (8 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
[[Category: | <!-- BEGIN origin interlang links --> | ||
<!-- You can edit this section but do NOT remove these comments | |||
Links below will be automatically replicated on translated pages by PolyglotBot --> | |||
[[fr:FAQ_Repertoire_Custom_Module_Externe]] | |||
[[es:FAQ_Directorio_Custom_Módulos_Externos]] | |||
<!-- END interlang links --> | |||
[[Category:Admin_en]] | |||
{{TemplateDocUser}} | {{TemplateDocUser}} | ||
For very old version of Dolibarr, you must execute this before being able to install an external module. | |||
'''Why my module does not appear ?''' | |||
* Make sure Dolibarr is already installed and configured on your workstation or development server. | * Make sure Dolibarr is already installed and configured on your workstation or development server. | ||
Latest revision as of 20:34, 18 February 2020
For very old version of Dolibarr, you must execute this before being able to install an external module.
Why my module does not appear ?
- Make sure Dolibarr is already installed and configured on your workstation or development server.
- In your Dolibarr installation directory, edit the htdocs/conf/conf.php file
- Find the following lines:
php //$dolibarr_main_url_root_alt ... //$dolibarr_main_document_root_alt ...
- Uncomment these lines (delete the leading //) and assign a sensible value according to your Dolibarr installation
For example :
* UNIX:
php
$dolibarr_main_url_root = 'http://localhost/Dolibarr/htdocs';
$dolibarr_main_document_root = '/var/www/Dolibarr/htdocs';
$dolibarr_main_url_root_alt = '/custom';
$dolibarr_main_document_root_alt = '/var/www/Dolibarr/htdocs/custom';
* Windows:
php
$dolibarr_main_url_root = 'http://localhost/Dolibarr/htdocs';
$dolibarr_main_document_root = 'C:/My Web Sites/Dolibarr/htdocs';
$dolibarr_main_url_root_alt = '/custom';
$dolibarr_main_document_root_alt = 'C:/My Web Sites/Dolibarr/htdocs/custom';
You may have to create the htdocs/custom directory first if it doesn't exist yet.
- Unzip the custom module zip file in the htdocs/custom directory
- You should now have a htdocs/custom/modulename directory
- Refresh your browser, Go to "Setup" -> "Modules"
The module displays in one of the sections, you could enable it and then start using it ;)
If the module is under development or experimental Got to "Setup" -> "Other setup" and set MAIN_FEATURES_LEVEL to 2
For more information about the conf.php file take a look at the conf.php.example file.