Links In The Head
Gallery2 is a wonderful and extremely powerful media sharing application, but some of its features are hard to reach for people with zero PHP/CSS experience.
So I wrote this plugin to deal with at least one of the problems.
With most themes, Gallery generates a list of “system links” at the very top of the page. Usually you see here things like “Login” and “Site Admin”. With a couple of neat plugins you can also add “About” and “Useful Links”.
But that’s about it.
Well, this top menu is too valuable a piece of real estate to ignore, and so I have come up with a way to inject into it any link your heard desires without having to mess with the templates files and learn Smarty. All you have to do is install a new module and then specify the link text and URL in the form. That’s it!
I do not use Gallery2 these days, and so I have fallen horribly behind in supporting this plugin. The plugin is very basic, so you should be able to fix/expand it easily. Gallery2 community is extremely helpful, so go ahead, hit the forums!
Alec Mayers has been generous enough to fix it recently, so if you run into trouble, you may try to get into his good graces
The official home
Up-to-date version of the plugin (updated and improved by Alec and others) can be found at the official plugin page.
The links could be absolute, or could be relative. I use it to point at my blog (here) and at my favorite photo (in the gallery). Your imagination is your only limit!
And, of course, special thanks go to the Gallery2 team – they have created an amazingly flexible application!
Sept 10, 2007 – version 0.1.1 – thanks to advice by valiant the module is now one file smaller and works at least twice faster (one HTTP request instead of two). Same features though.
Sept 8, 2007 – original version 0.0.9
Similar functionality is offered by the X_treme theme. If you are getting passionate about your gallery, you got to check it out: Pedro has spent a lot of sleepless nights making sure that even a total novice can enjoy full Gallery2 power.
Support and Feedback
Found a bug? Got an idea? An opinion? Just want to say “thank you”?
Well, what are you waiting for? Write it right here!
Would you like to take it over?
I stopped using Gallery on any regular basis – switched to Drupal for the sake of some non-image functionality. This means that I am slowly but steadily falling behind on Gallery developments.
Would you like to take over support and development of this plug-in? – Give me a yell!