This is a tiny (it's nearly as small as the SSL plugin) plugin I wrote this morning, that maybe other people will find useful.
I help administer multiple Cacti installations for various customers, and often have several tabs open to different customer's installations at the same time. Wouldn't it be nice to be able to tell them apart?
Titlechanger is a very small and simple plugin for Cacti that allows you to change the HTML TITLE for the pages (which shows in the tab title on most browsers) without getting into the code.
Install using the Plugin Architecture 2.x Plugin Management screen.
Look in Settings..Misc and there is an option to change the Title Prefix. If you have other plugins that change the title too, like Weathermap, then as long as they leave the 'Cacti' at the beginning, everything will continue to work fine.
http://wotsit.thingy.com/haj/cacti/titl ... lugin.html
Titlechanger 0.1 Released
Moderators: Developers, Moderators
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Titlechanger 0.1 Released
- Attachments
-
- titlechanger.png (16.66 KiB) Viewed 5456 times
Last edited by Howie on Fri Jul 31, 2009 7:54 am, edited 1 time in total.
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!)
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!)
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Hmm. It looks like the login page doesn't include the page_title hook, so Titlechanger can't change it. You can edit it manually in auth_login.php though.DLNoah wrote:In the not quite what I expected department: Titlechanger does not change the title on the login page.
Or, add the hook. Something like this instead of the existing title tag should work:
Code: Select all
<?php
$page_title = api_plugin_hook_function('page_title', 'Cacti Login');
?>
<title><?php echo $page_title; ?></title>
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!)
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!)
Who is online
Users browsing this forum: No registered users and 2 guests