mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-25 08:46:10 -06:00
4751 add documentation
This commit is contained in:
parent
49a670c235
commit
0831714f16
@ -187,6 +187,10 @@ Plugins can inject custom content into certain areas of the detail views of appl
|
||||
* `full_width_page()` - Inject content across the entire bottom of the page
|
||||
* `buttons()` - Add buttons to the top of the page
|
||||
|
||||
Plugins can also inject custom content into certain areas of the list views of applicable models using the same subclass of `PluginTemplateExtension`. One method is available:
|
||||
|
||||
* `list_buttons()` - Add buttons to the top of the list view page
|
||||
|
||||
Additionally, a `render()` method is available for convenience. This method accepts the name of a template to render, and any additional context data you want to pass. Its use is optional, however.
|
||||
|
||||
When a PluginTemplateExtension is instantiated, context data is assigned to `self.context`. Available data include:
|
||||
|
Loading…
Reference in New Issue
Block a user