-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the applicationIntroduction of new functionality to the application
Description
NetBox version
v3.4.10
Feature type
Change to existing functionality
Proposed functionality
I would like to be able to disable the "Map" button which is auto-generated on the physical address and GPS fields, for example by setting MAPS_URL=None (or empty string or false) - or if that doesn't work with inheritance of ConfigParam values, then to some sentinel value.
This would be a small change to netbox/templates/dcim/site.html in two places: e.g.
{% if object.physical_address %}
becomes something like
{% if object.physical_address and config.MAPS_URL %}
Use case
See #12399: you may want to make a Custom Link which gives a better map reference (by combining multiple fields).
(Making the physical and GPS map links fully templatable, like Custom Links are, would be nice for this use case, but I'm just putting the simplest case of disabling the map button)
Database changes
None
External dependencies
None
Metadata
Metadata
Assignees
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the applicationIntroduction of new functionality to the application