thanks for your answer. I'm really new to extensions, but yes I created my own, new extension. But it is hard for me to understand, therefore I need some help from your side :( How should this line looks like in the extensions.xml. I thought this file is only for specifying the name, version etc. of this extension. There is no dependency to other modules.
I only want to define a new css (that currently work) and another logo (this doesn't work)
Your module only needs to contains an XML file, plus the module.*.php file that is mandatory. In this later, remove everything in the datamodel key. Place your customization in a file named after your module. For example for the userportal-ci module, you should use datamodel.userportal-ci.xml.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I want to define a new logo for the user portal. Therefore I used the <logo> tag to define a new logo in the datamodel.xml. But this isn't working. I used the structure that is mentioned here: https://www.itophub.io/wiki/page?id=2_7_0%3Acustomization%3Aportal_xml</logo>
But it is still using the "old" one and did not redefine the logo path. Also defining the logo only with ../images/itop-logo.png doesn't work.
Cheers Shorty
So you created your own extension? You need to add an attribute.
<logo _delta="redefine">userportal-ci/css/new-itop-logo.png</logo>
You'll also need to add a dependency in the extensions module.xxx.php file to the module where itop-portal is originally defined.
Hi Jeffrey,
thanks for your answer. I'm really new to extensions, but yes I created my own, new extension. But it is hard for me to understand, therefore I need some help from your side :( How should this line looks like in the extensions.xml. I thought this file is only for specifying the name, version etc. of this extension. There is no dependency to other modules.
I only want to define a new css (that currently work) and another logo (this doesn't work)
module.userportal-ci.php
Sorry to ask such dumb questions.
Cheers Shorty
Last edit: Shorty1 2021-12-20
Hello,
Your module only needs to contains an XML file, plus the module.*.php file that is mandatory. In this later, remove everything in the datamodel key. Place your customization in a file named after your module. For example for the userportal-ci module, you should use datamodel.userportal-ci.xml.