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?
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
In your module.xxx.php file, you'll need to list the iTop module (itop-portal or itop-portal-base) as a dependency first.
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
Here is what I put But I still have the problem could not be found
up pls
Seems like you are lacking a
<forms>
node level in your XML between<module_design>
and<form>
what could I have missed knowing that I followed the itop-ticket datamodel?
It's most likely that you missed the
<forms>
node I talked about.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
error
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 ("You need to completely "redefine" the whole "twig" node unfortunately.