Menu

User actions configurator - recommended settings?

2018-03-04
2018-03-06
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2018-03-04

    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:

    • https://www.itophub.io/wiki/page?id=extensions%3Aitop-object-copier -> seems to still rely on config-itop / module.itop-object-copier.php ? Probably for the reason mentioned in its own config file:
      // 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 ?

     
  • Guillaume Lajarige

    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

     
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2018-03-05

    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.

     
  • Guillaume Lajarige

    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.

     
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2018-03-06

    Thanks for the explanation between those two things, Guillaume!

     
  • Guillaume Lajarige

    Glad it helped. Have a nice day :)

     

Log in to post a comment.

MongoDB Logo MongoDB