Extra custom link on model but not object of the model #5640

Closed
opened 2025-12-29 19:30:25 +01:00 by adam · 2 comments
Owner

Originally created by @jk-onnet on GitHub (Nov 10, 2021).

NetBox version

v3.0.9

Feature type

New functionality

Proposed functionality

A button that has custom link in the model object that same with existing custom link feature.
image
I think the implementation is similar with existing custom link features.

Use case

User or developer can create the custom button similar with existing Export template.
A new custom link button that can push selected device id to the url or other variables.
Examples
image
NetBox user can select all the devices and perform custom bulk action of the devices or even integrate with other system.

Database changes

No response

External dependencies

No response

Originally created by @jk-onnet on GitHub (Nov 10, 2021). ### NetBox version v3.0.9 ### Feature type New functionality ### Proposed functionality A button that has custom link in the model object that same with existing custom link feature. ![image](https://user-images.githubusercontent.com/85537520/141048198-330d8b8d-2fc7-4001-abc8-1ebf5268bd3c.png) I think the implementation is similar with existing custom link features. ### Use case User or developer can create the custom button similar with existing Export template. A new custom link button that can push selected device id to the url or other variables. Examples ![image](https://user-images.githubusercontent.com/85537520/141048360-39ae23c2-78be-4741-a44d-0290648b4797.png) NetBox user can select all the devices and perform custom bulk action of the devices or even integrate with other system. ### Database changes _No response_ ### External dependencies _No response_
adam added the type: feature label 2025-12-29 19:30:25 +01:00
adam closed this issue 2025-12-29 19:30:25 +01:00
Author
Owner

@jeremystretch commented on GitHub (Nov 10, 2021):

Custom links as they exist today expect the context of a specific object to actually render a link. I don't see how we could feasibly extend the model to work without it while maintaining backward compatibility.

@jeremystretch commented on GitHub (Nov 10, 2021): Custom links as they exist today expect the context of a specific object to actually render a link. I don't see how we could feasibly extend the model to work without it while maintaining backward compatibility.
Author
Owner

@jeremystretch commented on GitHub (Dec 13, 2021):

Seems like this use case can be addressed by using a plugin to extend the object list view.

@jeremystretch commented on GitHub (Dec 13, 2021): Seems like this use case can be addressed by using a plugin to [extend the object list view](https://netbox.readthedocs.io/en/stable/plugins/development/#extending-core-templates).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5640