Add on module button/integration

Discussion in 'Developers' Forum' started by Hannes_at, Thursday at 9:45 AM.

  1. Hannes_at

    Hannes_at New Member

    Hi,

    Im coding on a let's encrypt DNS challenge (acme.sh/certbot/...) minimal api for ispconfig.
    I want do it as add on module because i want use the ispconfig api to create/delete/.. the TXT records to keep the ispconfig api security between ispconfig and my api code.

    If i do it as add on module than i get the big button in the main menu like Home/Sites/DNS
    I would prefer a button in the DNS Submenu (see screenshot)
    or even better in a TAB of the zone template (see screenshot)
    Is there a way to connect a add on module in the sub menu or tab structure?

    Now i have it mixed - the Tab code directly in ispconfig code and the external part uses the ispconfig api to create the TXT records.

    thanks

    Screenshot 2025-03-27 094111.jpg
    Screenshot 2025-03-27 093050.jpg
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, both ways are possible. For the menu integration, put a file in dns/lib/menu.d/ folder. In you file, you can modify $module['nav'] which holds the menu entries.

    For integration as a separate tab, check out the discussions and examples about nextcloud integration ihere in the dev forum or take a look at the code of the nextcloud integration. https://www.ispconfig.org/blog/new-ispconfig-nextcloud-plugin-for-user-and-password-synchronization/
     
  3. Hannes_at

    Hannes_at New Member

    Thx - l ll check this
     

Share This Page