If your module need several parameters to be setup, you must create a page to edit options (that will be saved into [[Table llx_const|table '''llx_const''']]).
+
If your module need several parameters to be setup, you must create a page to edit options (these options will be saved in the [[Table llx_const|table '''llx_const''']]).
−
Create a page named '''mymodule_setuppage.php''' that show possibles options and update them into table from a form.
+
Create a page named '''mymodule_setuppage.php''' that shows a form for possible options to update them into the above mentioned table.
−
It is a necessary to take an example from a page into directory '''/admin''' that will show you the way to read/save your parameter.
+
It is necessary to take an example from a page of the directory '''/admin''' that will show you the way to read/save your parameters.
−
Put this page into directory '''/admin'''.
+
Put this PHP page into the directory '''/admin''' of your module (e.g. mymodule/admin/mymodule_setuppage.php).
−
Then, into the descriptor file of your module, modify the variable config_page_url to set name of this PHP page (without the path that is not necesary if page is inside directory admin).
+
Then, within the descriptor file of your module, modify the variable config_page_url to set name of this PHP page (without the path, which is not necesary if the page is inside directory admin).