Skip to content

Allow plugins to extend objectchange.html (changeview) template #16353

@ITJamie

Description

@ITJamie

NetBox version

v4.0.3

Feature type

Change to existing functionality

Proposed functionality

Allow plugins to use the PluginTemplateExtension feature to extend the objectchange.html (changeview) template with additional panels. (/netbox/netbox/templates/extras/objectchange.html)

I've tested this locally and it is as simple as adding {% load plugins %} to the template along with the panel placements
eg:

<div class="row">
  <div class="col col-md-12">
    {% plugin_full_width_page object %}
  </div>
</div>

Use case

I have an internal plugin that I wish to add some panels to the changelog view that will point out some business-related information about changes.

Database changes

N/A

External dependencies

N/A

Metadata

Metadata

Assignees

Labels

complexity: lowRequires minimal effort to implementstatus: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions