Congratulations for this release, I think it's really good!
I want to add some tabs on the main menu (HOME) to display some other things than photos (contact form, for example)
I added the following lines to gallery/modules/gallery/helpers/gallery_menu.php...
Quote:
$menu->append(Menu::factory("link")
->id("contact")
->label(t("Contact Us"))
->url("http://www.mydomain.tld/gallery/contact.php"));
contact.php its a copy of index.php, but when I modify it, I have no desired results.
Is there an easy way to do that?
Thank's!
Posts: 7994
Ultimately you should make your own module for this, otherwise your changes to gallery_menu.php will get discarded when you upgrade next. But in the meantime, it should work for you.
I added the code you provided at the very end of the site() function and the menu option popped up for me. I'll attach my version of gallery_menu.php here (note that this is against the *latest* code so you should upgrade before you try to use it or you may experience some weird issues).
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!