dolibarr/htdocs/custom/README.md

28 lines
984 B
Markdown
Raw Normal View History

2019-12-05 21:58:35 +01:00
# DOLIBARR ERP & CRM custom directory for external modules
This directory is dedicated to store external modules.
To use it, just copy here the directory of the module into this directory.
2019-12-05 21:58:35 +01:00
Note: On linux or MAC systems, it is better to unzip/store the external module directory into
a different place than this directory and just adding a symbolic link here to the htdocs directory
of the module.
2019-12-05 21:58:35 +01:00
For example on Linux OS: Get the module from the command
2019-12-05 22:00:05 +01:00
2019-12-05 21:58:35 +01:00
`mkdir ~/git; cd ~/git`
2019-12-05 22:00:05 +01:00
2019-12-05 21:58:35 +01:00
`git clone https://git.framasoft.org/p/newmodule/newmodule.git`
2019-12-05 22:00:05 +01:00
Then create the symbolic link
2019-12-05 22:00:05 +01:00
2019-12-05 21:58:35 +01:00
`ln -fs ~/git/newmodule/htdocs /path_to_dolibarr/htdocs/custom/newmodule`
WARNING !!!
2019-12-05 21:58:35 +01:00
Check also that the /custom directory is active by adding into dolibarr `conf/conf.php` file the following
2017-09-04 11:22:53 +02:00
two lines, so dolibarr will also scan /custom directory to find external external modules:
2019-12-05 21:58:35 +01:00
```php
$dolibarr_main_url_root_alt='/custom';
$dolibarr_main_document_root_alt='/path_to_dolibarr/htdocs/custom/';
2019-12-05 21:58:35 +01:00
```