Menu

itop portal extension problem

kpelaz
2024-02-28
2024-03-04
  • kpelaz

    kpelaz - 2024-02-28

    Hello, I am having a problem, I am trying to make an extension which allows the location to appear when a person creates a ticket
    The problem is that when I install the extension it tells me that ticket create could not be found even though I am taking inspiration from the datamodel where there is ticket create,
    can you help me?

     
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2024-02-28

    In your module.xxx.php file, you'll need to list the iTop module (itop-portal or itop-portal-base) as a dependency first.

     
  • Guillaume Lajarige

    Hello,

    As your extension changes something that is in the itop-tickets module, you need to add it as a dependency in your module.itopticketlieu.php file in your extension. That way it will ensure that your extension comes after itop-tickets and that it can changes what was brought by it.

    Hope it helps,
    Guillaume

     
  • kpelaz

    kpelaz - 2024-02-28

    Here is what I put But I still have the problem could not be found

     
  • kpelaz

    kpelaz - 2024-02-28

    up pls

     
  • Guillaume Lajarige

    Seems like you are lacking a <forms> node level in your XML between <module_design> and <form>

     
  • kpelaz

    kpelaz - 2024-03-04

    what could I have missed knowing that I followed the itop-ticket datamodel?

     
  • Guillaume Lajarige

    It's most likely that you missed the <forms> node I talked about.

     
  • kpelaz

    kpelaz - 2024-03-04

    I did as you said now I have an error which tells me that my line 19 already exists even though it does not. Can you tell me what this means
    here's the screenshot

     
  • kpelaz

    kpelaz - 2024-03-04

    error

     
  • Guillaume Lajarige

    It's because there is no "id" attribute on that node where you put the _delta="define" alteration. Therefore it cannot identify it precisely and takes the first one ("

    ") present in the previous modules.

    You need to completely "redefine" the whole "twig" node unfortunately.

    Hope it helps,
    Guillaume
    
     

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.