I'm integrating into a site, I'd like to make the default gallery title/logo that appears in the main menu bar point to the home page of the main site, opposed to the homepage of the gallery.
Possible?
Offline
Place any HTML you want into the Page banner (Admin -> Configuration -> Options). Like
<h1><a href="/homepage/">%gallery_title%</a></h1>
Offline
Thanks, but that's not quite working as I'm expecting.
I'm using the Bootsrap Darkroom theme (Should have mentioned that at the start!). With this theme there is the option of the banner, and indeed the instructions you gave me do change the site title in the banner. But I want to change the site title that sits in the menu, not the banner.
Here is the gallery page: https://www.baskerville.me/gallery/
I want the site title; baskerville.me to point to https://www.baskerville.me/ not /gallery/
Is that doable?
Offline
Yep. Install Localfiles Editor, and then add the following the the local config:
$conf['gallery_url'] = 'https://www.baskerville.me/';
Last edited by Zentalquabula (2021-05-04 16:22:51)
Offline
Thank you for that, much appreciate, and it's almost there, but it also changes the home icon in the breadcrumb menu, which I need to stay pointing to /gallery/
I know, it's a toughie!
I've got a workaround using javascript, but I'm thinking there must be a more elegant way to do it?
Offline
Thinking about this some more, your approach is the best option. I'd then potentially need to hide the breadcrumb, which is easy with some css. But I would then need a way for the user to get back to the /gallery/ page.
In the albums dropdown menu there is no "all albums" button, which is a bit odd. And from what I can see there is no way to add top-level menu items to the navigation. Which again seems a bit odd.
If anyone has any ideas for a solution I'd be keen to hear them.
Thanks.
Offline
Well, if you are just going to change the MENU, there are other configuration options, also from includes/config_default.inc.php
// links : list of external links to add in the menu. An example is the best // than a long explanation : // // Simple use: // for each link is associated a label // $conf['links'] = array( // 'http://piwigo.org' => 'PWG website', // 'http://piwigo.org/forum' => 'PWG forum', // );
Offline
Also, you can control the menus with Advanced Menu Manager. Just add a block of your own with the links you want, and get rid of the stadnard one (if there is one, can't remember).
Offline
Thanks again, but that adds a block with custom links, I'm wanting to add custom links to the top level of the menu. So no drop-down, but the links in the main menu.
Offline