Menu

Customizing itop user's portal - new request form labels

2023-04-26
2023-04-26
  • Stefan Djuricic

    Stefan Djuricic - 2023-04-26

    Hi,

    We'd like to know if it's possible to change labels {critical, high, medium, low} to {P1, P2, P3, P4} and if anyone has an idea where to look in the code for those labels? Wouldn't mind if it's only changed in this specific form on user's portal.

    Thanks

     
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2023-04-26

    You'd need to override the translations (dictionary entries) for those labels.

    There's some really good documentation by Combodo. And some official examples; but there's a lot more in this repository too on how to accomplish certain things.

    Most useful resources are: * https://www.itophub.io/wiki/page?id=latest%3Acustomization%3Axml_reference * https://www.itophub.io/wiki/page?id=latest%3Acustomization%3Adatamodel#content_of_a_module

     
    👍
    1
    • Stefan Djuricic

      Stefan Djuricic - 2023-04-26

      Thanks Jeffrey,

      I located the file with specific translations, in my case that's at
      /var/www/html/env-production/itop-incident-mgmt-itil/dictionaries
      and the file
      en.dict.itop-incident-mgmt-itil.php

      Is overriding - changing the en.dict.itop-incident-mgmt-itil.php file content (critical -> P1 for example) and then running itop/setup again?

      Thx

       
      • Jeffrey Bostoen

        Jeffrey Bostoen - 2023-04-26

        Bad idea to override original files, as each upgrade you'll need to adapt it again.

        The proper way to avoid this, is to create your own extension to override the specific dictionary entry indeed for 'critical' to display 'P1'.

         
        • Stefan Djuricic

          Stefan Djuricic - 2023-04-26

          Yeah, makes sense. Is that the only thing to watch for, changing the version? If overriding original files. We'll probably upgrade at some point so better to do it by creating new extensions.

          Just curios, does itop/setup keep the current state of itop (tickets, incidents, config) and just adds new stuff?

          Thanks Jeffrey

           
          • Jeffrey Bostoen

            Jeffrey Bostoen - 2023-04-26

            Your data is always kept, and upgraded if needed.

             

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.