PIA 2.6 Plugin Tab Order

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

PIA 2.6 Plugin Tab Order

Post by mcutting »

Is there any way to control the order which the tabs are displayed ? I've got some great plugins, but they look a little odd in the fact that they are not in alphabetical order ?

Thanks
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
TheWitness
Developer
Posts: 17062
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Jimmy has to fix this. We need a sequence field in the plugin_config table and then use an "order by sequence". There are dependency issues too. Sometimes one plugin has to be loaded before another and not having the dependency recognized will generate issues.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

TheWitness wrote:Jimmy has to fix this. We need a sequence field in the plugin_config table and then use an "order by sequence". There are dependency issues too. Sometimes one plugin has to be loaded before another and not having the dependency recognized will generate issues.

TheWitness
Is there anything I can do/help with in the meantime ?
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

For alphabetical order specifically, you can add ' order by name' to the end of the two SQL queries in lib/plugins.php for the api_plugin_hook and api_plugin_hook_function functions.

That should get you tabs in alphabetical order of the plugin short name (the directory name).

Hmm, actually, only if all your plugins are new-style. Old-style ones always come after new-style ones.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Howie wrote:For alphabetical order specifically, you can add ' order by name' to the end of the two SQL queries in lib/plugins.php for the api_plugin_hook and api_plugin_hook_function functions.

That should get you tabs in alphabetical order of the plugin short name (the directory name).

Hmm, actually, only if all your plugins are new-style. Old-style ones always come after new-style ones.
Exactly what I wanted - thanks Howie
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests