Skip to main content

Add context menu to links in NetBox

Project description

netbox_contextmenus

Add context buttons to the links, making navigating in NetBox less clicky

nbcm5

nbcm3

nbcm4

The menu items can easliy be personalised

INSTALLATION

NBCM is compatible with NetBox v3 and v4.0 (tested upto v4.5)


IMPORTANT NOTE !

NBCM version <= 1.4.3 used the 'BOTTOM_BANNER' variable to inject the javascript.

As of v1.4.4, the javascript is injected using django middleware. Make sure to remove the setting from the ConfigRevision BOTTOM_BANNER or from your configuration.py The nbcm.js file located in /opt/netbox/netbox/netbox/scripts can be removed.

This is a preparation to create a GUI to modifiy the Contect Menu items


CONFIGURATION

These settings can be customized using the PLUGINS_CONFIG variable in 'configuration.py'

PLUGINS_CONFIG = {
    'netbox_contextmenus': {
        'nbcmopendelay': 150,
        'hideburgers' : 0
    }
}
variable default function
nbcmopendelay 150 Time in milliseconds that the opening of the contextmenu will be delayed
hideburgers 0 Hide the burger icon, but open the menu when hovering over a link. Works best when the nbcmopendelay is set to 500

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netbox_contextmenus-1.4.14.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

netbox_contextmenus-1.4.14-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file netbox_contextmenus-1.4.14.tar.gz.

File metadata

  • Download URL: netbox_contextmenus-1.4.14.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for netbox_contextmenus-1.4.14.tar.gz
Algorithm Hash digest
SHA256 128b2c15a7ca6d6a460f23621f7a38899f0ec31716fa91103a5244a408b34ec4
MD5 54152dd4f2eadfd59476e5d38372a380
BLAKE2b-256 b3b8257f8bb1ff240aeee35758653e042dfd92a1fd93ca5b8bbc8b9ca51817d5

See more details on using hashes here.

File details

Details for the file netbox_contextmenus-1.4.14-py3-none-any.whl.

File metadata

File hashes

Hashes for netbox_contextmenus-1.4.14-py3-none-any.whl
Algorithm Hash digest
SHA256 6bdb728baec984ead4e5c572334f5cfdb0b8ecd0cb65e90253e0f23b674f77df
MD5 4c9c60dd1f364279408a2424e1c044e5
BLAKE2b-256 17fc929d3cfc665df3b0125907a117ca934afc5158302fd379b233a4e1fc4e58

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page