nautobot-docker-compose icon indicating copy to clipboard operation
nautobot-docker-compose copied to clipboard

How to add a new Homepage Item using Plugin

Open resulraveendran opened this issue 2 years ago • 3 comments

Hi,

How to add a  homepage item in Nautobot UI using the plugin. In my research didn't find any plugin. So did I want to create a plugin? 

Then how to create a plugin is there any document.

I tried to add HomepageItem by editing homepage.py in this repo(https://github.com/nautobot/nautobot) . But I can't change the tables mapping for that

resulraveendran avatar Jun 23 '22 13:06 resulraveendran

@smk4664 do you have some input that you could provide? I think I have seen you have this in some demos.

jvanderaa avatar Jun 29 '22 16:06 jvanderaa

Note that this is not an issue with the repo, it is a general Nautobot item. I'll keep the issue open for getting the info out. I wanted to move to a discussion, but that did not seem to be an option.

jvanderaa avatar Jun 29 '22 16:06 jvanderaa

https://nautobot.readthedocs.io/en/stable/plugins/development/#adding-home-page-content and https://github.com/nautobot/nautobot/blob/develop/examples/example_plugin/example_plugin/homepage.py should help you. You should add your new homepage content in homepage.py in your plugin folder.

smk4664 avatar Jun 29 '22 17:06 smk4664