Menu

Change how customized request template is rendered

2023-12-21
2023-12-21
  • Youssef Gadelrab

    Hello ITOP team, we want to view the customized request template at the end of the original ticket, there is no valid reason for having the request template before the title and description since both are required fields.

     
  • Vincent @ Combodo

    With an iTop extension you can change the display of an object in the User Portal, the field code used by customized request form in a UserRequest is service_details, so just move that field within the Ticket creation form of the Portal.

     
  • Youssef Gadelrab

    I know about the service_details thing
    But i dont know file has the the fields of the ticket creation form of the Portal you're talking about, can you point me to its location so i can alter it?

     
  • Vincent @ Combodo

    Altering the source code of iTop is really not a good idea as it's not compatible with any future upgrade of iTop... Why do you want to do this rather than building an iTop extension?
    There is no specific tutorial for moving fields within a form, but this one is making a field mandatory in a form, so explains most of the work to do.

     

    Last edit: Vincent @ Combodo 2023-12-21
  • Youssef Gadelrab

    I meant where can i find it in the code, because usually when i write an extension i use what is already defined and do my alterations. Ive been searching for the location of this field for a while for no use

     
  • Vincent @ Combodo

    You cannot find that field "service-details" in iTop source code, as it's brought by the extension it-self.
    Check the file itop/data/datamodel-production.xml it contains the full aggregated XML with all your extensions and result of setup choices. You will see the form and twig to modify.
    This advice is valid for any XML changes you which to do.

     

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.