Menu

Creating a button that calls PHP

2022-12-19
2023-01-10
  • Javier Galdeano Rodríguez

    Hey! I've looking for a tutorial in which I could learn how to add a button that could execute a PHP code. I want to add this one to every single modifying view of different classes. The place is exactly here:

     
  • Pierre Goiffon

    Pierre Goiffon - 2023-01-09

    Hello,
    What do you mean "here" ? Seems like you want a new action button on a defined iTop class, in details mode ?

     
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2023-01-10

    Indeed? One way to do so is to create a menu item for the "Other actions" menu. In iTop's config file, you can then promote this to a button.

    https://github.com/jbostoen/itop-jb-report-generator/blob/master/app/core/applicationextension.class.inc.php contains an (extended) example on how to add menu actions or even forcefully show a button (Combodo might have a nicer way to force this?)

     

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.