[racktables-users] Re: plugin: adding new item to main page

  • From: Lucas Aimaretto <laimaretto@xxxxxxxxx>
  • To: racktables-users@xxxxxxxxxxxxx
  • Date: Tue, 17 Jan 2017 11:32:57 -0300

Hi Denis,

 > Now I was wondering which is the way to add new items to the main page? In 
other words, how do I create a new section?

Search for "indexlayout" and you will see where to add the new item. This is 
in addition to the existing structures in navigation.php, also there should 
be a picture registered for it in interface-lib.php. You can use this commit 
as an example: 
https://github.com/RackTables/racktables/commit/3a363a07bffd0b93fe3b7dea2564c56f589887be

Yes, indeed. We've found that after looking at the code. We managed
ourselves to do it in a recent plugin:
https://github.com/RackTables/racktables-contribs/blob/master/python-graph-topology/graph.php

Thanks for your reply anyway!

Cheers!

Lucas

-- 
"Antes teníamos hambre y mirábamos el reloj para saber qué hora era.
Ahora miramos el reloj para saber si tenemos hambre." -- Ernesto
Sábato

Other related posts: