Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable plugins to inject content within the top navigation bar #16359

Closed
jeremystretch opened this issue May 30, 2024 · 2 comments · Fixed by #16409
Closed

Enable plugins to inject content within the top navigation bar #16359

jeremystretch opened this issue May 30, 2024 · 2 comments · Fixed by #16409
Assignees
Labels
complexity: low Requires minimal effort to implement status: accepted This issue has been accepted for implementation type: feature Introduction of new functionality to the application
Milestone

Comments

@jeremystretch
Copy link
Member

NetBox version

v4.0.3

Feature type

New functionality

Proposed functionality

It is currently possible for a plugin to embed custom content in NetBox core views by employing one or more of the available extension methods of the PluginTemplateExtension class. This proposal would add a new method, navbar(), to enable a plugin to inject custom content within the top navigation bar, to the left of the user menu (opposite the global search bar).

This will also require slight modification to the logic for registering template extensions, which currently requires the association of an extension with a particular NetBox model.

Use case

It may be desirable for a plugin to embed a notification or control widget of some kind which persists across multiple views.

Database changes

None

External dependencies

None

@jeremystretch jeremystretch added type: feature Introduction of new functionality to the application status: backlog Awaiting selection for work complexity: low Requires minimal effort to implement labels May 30, 2024
@PieterL75
Copy link
Contributor

Funny, we had a discussion in the #netbox-plugin-development on this :-)
There was the question what the best way is to inject CSS or JS.
BOTTOM_BANNER was the best solution for now.

So can we extend this FR to include a mean to inject something like CSS and JS ?
Or should we open another FR for this

@jeremystretch
Copy link
Member Author

@PieterL75 what would not be in scope for this FR.

@jeffgdotorg jeffgdotorg added this to the v4.1 milestone May 31, 2024
@jeremystretch jeremystretch self-assigned this Jun 4, 2024
@jeremystretch jeremystretch added status: accepted This issue has been accepted for implementation and removed status: backlog Awaiting selection for work labels Jun 4, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
complexity: low Requires minimal effort to implement status: accepted This issue has been accepted for implementation type: feature Introduction of new functionality to the application
Projects
None yet
3 participants