Menu

add dashlet in menu ConfigManagementOverview

i-Circo
2025-02-04
2025-02-05
  • i-Circo

    i-Circo - 2025-02-04

    hi,

    I created a new extension in itop 3.0.3 and I try to add a dashlet in my menu ConfigManagementOverview.

    But, I have the error
    Error loading module "my-extension": /itop_design/menus/menu[ConfigManagementOverview] at line 200: could not be modified (not found)

    ConfigManagementOverview exists ! So I don't understand why I have this message

    <menus>
    </menus>


    <definition>
    <cells>
    <cell id="2" _delta="must_exist">
    <dashlets>
    <dashlet id="99" xsi:type="DashletBadge" _delta="define">
    <rank>8</rank>
    <class>Monitor</class>
    </dashlet>
    </dashlets>
    </cell>
    </cells>
    </definition>

     
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2025-02-04

    In the "module.xxx.php" file of your extension, you'll need to have a dependency to the module in which ConfigManagementOverview is originally defined.

     
  • i-Circo

    i-Circo - 2025-02-04

    thanks ! it works

     

    Last edit: i-Circo 2025-02-04
  • i-Circo

    i-Circo - 2025-02-04

    I still have a problem to add an icon in my dashlet. What is the syntax to add the icon ?

    i tried this syntax :

       <menu id="ConfigManagementOverview" xsi:type="DashboardMenuNode" _delta="must_exist">          
       <definition>
            <cells>
              <cell id="4" _delta="must_exist">
                <dashlets>
                  <dashlet id="99" xsi:type="DashletBadge" _delta="define">
                    <rank>18</rank>
                    <class>Monitor</class>
                    <icon>images/monitor_48x48.png</icon>
                  </dashlet>
                </dashlets>
              </cell>
            </cells>
          </definition>
        </menu>
    
     

    Last edit: i-Circo 2025-02-04
  • i-Circo

    i-Circo - 2025-02-05

    I tried this code but without success.... it seems that since itop 3.0 it changes

    <files>
    <file id="monitor-logo" xsi:type="File" _delta="define_if_not_exists">
          <name>images/monitor.png</name>
          <mime_type>image/png</mime_type>
          <width>50</width>
          <height>50</height>
          <data>abcdeflkdmslqkdfmskf...</data>
        </file>
    </files>
    :
    :
    <dashlets>
                  <dashlet id="99" xsi:type="DashletBadge" _delta="define">
                    <rank>18</rank>
                    <class>Monitor</class>
                    <icon>
                      <fileref ref="monitor-logo"/>
                    </icon>
      </dashlet>
    
     

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.