Let Plugin tabs/cards override vanilla tabs/cards #7516

Closed
opened 2025-12-29 20:24:35 +01:00 by adam · 1 comment
Owner

Originally created by @PieterL75 on GitHub (Jan 15, 2023).

NetBox version

v3.4.1

Feature type

Change to existing functionality

Proposed functionality

A plugin can add extra cards or tabs to a page, which is fantastic.

I would like to suggest the ability to override existing cards/tabs from the vanilla NetBox with Plugin ones.
For example: On a Device, we create a custom page on plugin, that shows the info in different ways, and gets rid of info that we don't use. I have a 'nginx' override for the page, redirecting to my plugin.

It would be much convenient, that I could just create a 'tab' on the 'Device' page with the same name as the vanilla one, but that it overrides it.

Same for the cards.

Use case

No need to use nginx to redirect the device page to a plugin page
We have CF with additional comments in devices (device comment, tenant comment, site comment).
We used be able to see all of the in the device page (previous dcim), So it would be great, that I could overrule the default comment card, with comments from the related tenant and site

Database changes

No response

External dependencies

No response

Originally created by @PieterL75 on GitHub (Jan 15, 2023). ### NetBox version v3.4.1 ### Feature type Change to existing functionality ### Proposed functionality A plugin can add extra cards or tabs to a page, which is fantastic. I would like to suggest the ability to override existing cards/tabs from the vanilla NetBox with Plugin ones. For example: On a Device, we create a custom page on plugin, that shows the info in different ways, and gets rid of info that we don't use. I have a 'nginx' override for the page, redirecting to my plugin. It would be much convenient, that I could just create a 'tab' on the 'Device' page with the same name as the vanilla one, but that it overrides it. Same for the cards. ### Use case No need to use nginx to redirect the device page to a plugin page We have CF with additional comments in devices (device comment, tenant comment, site comment). We used be able to see all of the in the device page (previous dcim), So it would be great, that I could overrule the default comment card, with comments from the related tenant and site ### Database changes _No response_ ### External dependencies _No response_
adam added the type: feature label 2025-12-29 20:24:35 +01:00
adam closed this issue 2025-12-29 20:24:35 +01:00
Author
Owner

@jeremystretch commented on GitHub (Mar 16, 2023):

I don't think this is something we can support, for two reasons:

  1. Other areas of NetBox may link directly to a tabbed view and rely on the specific functionality and information that it provides. This effectively precludes core functions from relying on core views.
  2. Users following the documentation may be surprised and confused to find that content under a specific tab differs from their expectations.

I understand and appreciate the use case, however I'm not comfortable accepting the risk and implications this would impose.

@jeremystretch commented on GitHub (Mar 16, 2023): I don't think this is something we can support, for two reasons: 1. Other areas of NetBox may link directly to a tabbed view and rely on the specific functionality and information that it provides. This effectively precludes core functions from relying on core views. 2. Users following the documentation may be surprised and confused to find that content under a specific tab differs from their expectations. I understand and appreciate the use case, however I'm not comfortable accepting the risk and implications this would impose.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7516