MD Add Sitename

Add a sitename to the EE Control Panel header

Download MD Add Sitename 1.2.2

This version posted January 12, 2009
This ExpressionEngine add-on is available at GitHub.
Visit the GitHub page and click "Download", and then click either "Zip" or "Tar".

Add Sitename I finally got the urge to read the Extension development docs and sift through a billion forum posts to find out how to do an extension. Go easy on me, please – this is my first extension!

Reason For Being: I found that I am often in more than one website control panel at a time, in different tabs, and that I get a bit confused sometimes because the name of the site isn’t jumping out at me. Occasionally I’m on the wrong tab, etc. Anyway, I wrote this extension to put the name of the site at the upper left of the Control Panel header.

Note that this is different than Leevi Graham’s “LG Add Sitename” Extension. This version is much simpler – you can’t add graphics or any of that other stuff. With this version, you just turn it on and you’re done. If you need a more full-fledged version, please see LG Add Sitename.

Add Sitename Update Check

Version 1.2.2 (Jan 12 2009) 82+ downloads :

  • Removed the old school update checking that wasn’t working anyway. Should help eliminate errors on the control panel homepage.
  • Changed name to MD Add Sitename

Version 1.2 (May 26 2008) 172 downloads :
Fixed a bug where styles could be rendered in head more than once; added documentation URL; added version checking (Thanks Leevi Graham); fixed a default settings problem; and added a check to see if Extension info is in session or cache to keep things speedy (again, thanks, Leevi.)

Version 1.1.5 (Mar 21 2008) 18 downloads:
Updated to account for sites using .png instead of .ico for the favicon. Good to know this will no longer be needed in 2.0 – but not everyone is going to update immediately, so there is still a need!

Version 1.1.4 (Nov 18 2007):
Changed $siteurl variable. Favicon path seemed to be not working in certain cases. Let me know if it’s not working for you.
111 downloads

Version 1.1.3 (Sep 15 2007):
Added the ability to make the text italic. (Thanks Hambo)
59 downloads

Version 1.1.2 (Jul 15 2007):
Added the ability to show a site’s favicon next to the text.
111 downloads

Version 1.1.1 (Jul 13 2007):
Added setting for overriding the default site name. You can make the text say whatever you want. Might be handy to designate “development” sites, shorten a real long name, play a prank, or whatever you like.

Version 1.1.0 (Jul 08 2007):
Added settings for font-size, making the site name a link to your site’s homepage, color, font-weight, font-family, and padding on the top and the bottom (in case changing the size of the text messes the layout up at all).

Version 1.0.2 (Jul 06 2007):
Added ‘stripslashes’ for site names with apostrophes.

Version 1.0.1 (Jun 25 2007):

- I’ve only tested this on Firefox and Safari for Mac. I was too lazy to fire up Parallels and test in IE. Any bugs or problems with the styles in other browsers? Just let me know, and I’ll update.

This does not currently work on an MSM-enabled sites when you’re using the text override. The text override will override all of your site names.

Also see the original forum thread at the EE Forums.

This entry was last updated March 6, 2009.


1 Comment

  1. 1. AJP

    May 05th, 2008

    It *does* work on an MSM enabled site, if you only use the stock functionality and pull the SiteName only. If you custom create a title, then it won’t work.

Sorry, comments are closed.