// This should be defined in XML to allow overrides (see https://wiki.openitop.org/doku.php?id=2_4_0:customization:xml_reference&s[]=xml&s[]=data&s[]=model&s[]=reference#modules_parameters)// But we can't because of label keys that contains also the locale ("/" and " " characters)
The reasoning is also explicitly explained on the link above.
So I take the (generally) recommended way is to do this in config-itop.php (for now)?
Is this about to change in a near-future release of either iTop or the extension, or no plans in that direction, or long term?
What is the general recommendation when it comes to these kind of settings?
In .php (seems to be the classic approach) or .XML ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm not sure I understood what your question was, so feel free to correct me if I'm not anwsering the question.
What you see in module.itop-object-copier.php are the default values for Object Copier settings. If you want to change them, the right way to do it is in the administration console under Admin tools > Configuration. You will see a Module settings part where those settings are under the itop-object-copier entry.
Generally, extensions settings are available there and you should change them there.
Kind regards,
Guillaume
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OK, so we should ignore 'module_parameters' in XML for now?
I'm just wondering in general if it's still recommended to edit config-itop.php like you mentioned, or if it should be done in XML.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
module_parameters in XML only define the default value of a module parameters, it is not used to set a value for your instance. You should only use it when creating your own extension. Check the documentation here.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've been looking at a few extensions which seemed a bit complex at first but are actually very useful for some cases. However, I have a question:
The reasoning is also explicitly explained on the link above.
Is this about to change in a near-future release of either iTop or the extension, or no plans in that direction, or long term?
What is the general recommendation when it comes to these kind of settings?
In .php (seems to be the classic approach) or .XML ?
Hi Jeffrey,
I'm not sure I understood what your question was, so feel free to correct me if I'm not anwsering the question.
What you see in module.itop-object-copier.php are the default values for Object Copier settings. If you want to change them, the right way to do it is in the administration console under Admin tools > Configuration. You will see a Module settings part where those settings are under the itop-object-copier entry.
Generally, extensions settings are available there and you should change them there.
Kind regards,
Guillaume
OK, so we should ignore 'module_parameters' in XML for now?
I'm just wondering in general if it's still recommended to edit config-itop.php like you mentioned, or if it should be done in XML.
module_parameters in XML only define the default value of a module parameters, it is not used to set a value for your instance. You should only use it when creating your own extension. Check the documentation here.
Thanks for the explanation between those two things, Guillaume!
Glad it helped. Have a nice day :)