Menu

Tutorial create class

elmano
2013-01-07
2013-03-26
  • elmano

    elmano - 2013-01-07

    Hello,
    in the tutorial it's tell to copy the generated module to the extension dir. My question is where is this directorie ? On windows distrib it does not exist.
    Many thanks for your help.
    Dan

     
    • elmano

      elmano - 2013-01-07

      I found the information. The dir does not exist but can be created to store the extension modules on the root of the ITop dir.

       

      Last edit: elmano 2013-01-07
  • Denis

    Denis - 2013-01-07

    Hmm, there should be a directory named 'extensions' at the root of the iTop installation folder (at the same level as application, core, setup, etc...)

    If it does not exist, just create it.

    The directory structure is explained briefly here:
    http://www.combodo.com/wiki/doku.php?id=customization:start#understanding_the_itop_file_structure

    • Denis
     
  • Frank Truscott

    Frank Truscott - 2013-01-07

    I had to create my own, too. For background, my first install was a beta of 2.0 which I then upgraded to 2.0

     
  • Mlaura

    Mlaura - 2013-01-28

    Hello, I installed Itop v2 from scratch, but the directory extensions is not present in the tree. I created it by myself, gave it all rights doing chown -Rf apache:apache extensions, but the toolkit is not able to see this directory. What shall I do?
    Thanks in advance for you help
    Laura

     
  • Sergej

    Sergej - 2013-03-05

    Hello Gays,
    i also have the same problem. I follow the instruction but it doesn’t work.

    The customization process is the following:

    1.Install the toolkit to assist you in the customization
    2.Create a new (empty) module using the module creation wizard
    3.Copy this new module to the extensions folder on iTop and run the setup again to install the empty module
    4.Modify the module in extensions and use the toolkit to check your customizations

    By starts Point 3 my installation doesn't see some “extensions”.

    Everyone solve this problem?

     
  • Denis

    Denis - 2013-03-05

    Check the rights on the 'extensions' folder and the folders below. These must be read-able by the web server.

    Let me know if it fixes your problem.

     
  • Sergej

    Sergej - 2013-03-05

    Dear Denis,

    i test it before with 2 kind of file's. With and without a sub folder.

    Ticketsystem-dev:/srv/www/htdocs/dev # ls -la extensions/
    total 28
    drwxr-xr-x 3 wwwrun www 4096 Mar 5 12:32 .
    drwxr-xr-x 24 wwwrun www 4096 Mar 5 12:10 ..
    -rw-r--r-- 1 wwwrun www 209 Mar 5 12:32 datamodel.kb-scaner.xml
    -rw-r--r-- 1 wwwrun www 219 Mar 5 12:32 en.dict.kb-scaner.php
    drwxr-xr-x 2 wwwrun www 4096 Mar 5 12:10 kb-scaner
    -rw-r--r-- 1 wwwrun www 656 Mar 5 12:32 model.kb-scaner.php
    -rw-r--r-- 1 wwwrun www 946 Mar 5 12:32 module.kb-scaner.php

    rights looks good for me.

    I install new development instance before, to test this Workflow.

     
  • Denis

    Denis - 2013-03-05

    Hmm, I guess your files need to be in a sub-folder named from the module name (kb-scaner) of the 'extensions' folder.

     
  • Sergej

    Sergej - 2013-03-05

    The Files are also in the same named folder:

    Ticketsystem-dev:/srv/www/htdocs/dev # ls -la extensions/kb-scaner/
    total 24
    drwxr-xr-x 2 wwwrun www 4096 Mar 5 12:10 .
    drwxr-xr-x 3 wwwrun www 4096 Mar 5 12:32 ..
    -rw-r--r-- 1 wwwrun www 209 Mar 5 12:07 datamodel.kb-scaner.xml
    -rw-r--r-- 1 wwwrun www 219 Mar 5 12:07 en.dict.kb-scaner.php
    -rw-r--r-- 1 wwwrun www 656 Mar 5 12:07 model.kb-scaner.php
    -rw-r--r-- 1 wwwrun www 946 Mar 5 12:07 module.kb-scaner.php

     
  • Denis

    Denis - 2013-03-05

    Then if the module is not marked as non-visible ('visible' => false, in the module.kb-scaner.php file) it should appear during the setup.

    Note: the list of the 'extensions' to install is an extra step of the installation wizard (it is displayed after the choice of the usual data model modules).

     
  • Sergej

    Sergej - 2013-03-06

    module.kb-scaner.php is emty modul generated by "http://www.combodo.com/wiki/doku.php?id=customization:start" Genetator.

                    'mandatory' => false,
                    'visible' => true,
    
     
  • Jim Scott

    Jim Scott - 2013-03-25

    Has anyone come up with a resolution to this issue? I have the folder 'extensions' created with the correct rights. The folder for my custom module is in that folder with the correct rights. In the module.php file, I have 'visible' =>true, yet, I still can't see my custom module when rerunning setup.

    Any other thoughts as to how to troubleshoot this?

    Jim

     
  • Jim Scott

    Jim Scott - 2013-03-26

    Found where my issue was. It might be good to have some of this information in the manual...

    In the file: log/setup.log, there were numerous 'Warning's telling me that the module I was trying to build had unmet dependencies. I went into the module.php and removed those dependencies. I was then able to run setup again and add my custom module.

    The question now becomes, why wasn't the setup able to find those base modules that my module depended upon?

    That, however, is a question for a different time.

    My issue with the importing of a custom module during setup is resolved.

    Jim

     

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.