Hello/Hi/Greetings,
I am wanting to add links to other websites in the additional pages section of our photo album. But so far I can only ad links that reside within the /photo/ where the piwigo is installed.
I'm used to being able to edit the programs files, So I can edit these URLs in directly, but I can't find the files I need to edit.
Can anyone point me to the files which allow me to edit the header or menu items?
thank you
Randy
Piwigo URL: http://spearfish.biz/photo/
Offline
Hello,
I add links to the menu bar using Local file Editor plugin.
In its local config tab, I enter someting like this :
$conf['links'] = array( 'https://chauvigne.info/' => array('label' => 'Ma Tribu', 'new_window' => true, 'eval_visible' => 'return true;'), 'https://clan.chauvigne.info/' => array('label' => 'GeneaKat', 'new_window' => true, 'eval_visible' => 'return true;'), 'https://agora.chauvigne.info/' => array('label' => 'Agora forum', 'new_window' => true, 'eval_visible' => 'return true;'), 'https://katryne.legtux/chronikat/' => array('label' => 'Chronikat', 'new_window' => true, 'eval_visible' => 'return true;'), 'http://unbeaujour.comoni.org/' => array('label' => 'Un beau jour...', 'new_window' => true, 'eval_visible' => 'return true;'), 'https://revestou.fr/' => array('label' => 'Les Carnets du Revest', 'new_window' => true, 'eval_visible' => 'return true;'), );
Now, look at the "Links" or "Liens" menu item there : https://album.chauvigne.info/
Is it something of the kind you want to achieve ?
Offline
Thap appears to be part of your theme... it looks nice. I'll look for the code to change.
Offline
Have you tried what I suggested ? With the plugin "Local Files Editor" ?
My theme is the same as yours : Bootstrap Dark room.
And I did exactly the same thing the same way with the Modus theme. Have look at the links in my signature.
Offline
See also here: https://piwigo.org/forum/viewtopic.php? … 79#p185779
Offline
Katryne wrote:
Hello,
I add links to the menu bar using Local file Editor plugin.
In its local config tab, I enter someting like this :Code:
$conf['links'] = array( 'https://chauvigne.info/' => array('label' => 'Ma Tribu', 'new_window' => true, 'eval_visible' => 'return true;'), 'https://clan.chauvigne.info/' => array('label' => 'GeneaKat', 'new_window' => true, 'eval_visible' => 'return true;'), 'https://agora.chauvigne.info/' => array('label' => 'Agora forum', 'new_window' => true, 'eval_visible' => 'return true;'), 'https://katryne.legtux/chronikat/' => array('label' => 'Chronikat', 'new_window' => true, 'eval_visible' => 'return true;'), 'http://unbeaujour.comoni.org/' => array('label' => 'Un beau jour...', 'new_window' => true, 'eval_visible' => 'return true;'), 'https://revestou.fr/' => array('label' => 'Les Carnets du Revest', 'new_window' => true, 'eval_visible' => 'return true;'), );Now, look at the "Links" or "Liens" menu item there : https://album.chauvigne.info/
Is it something of the kind you want to achieve ?
On which file do you complete this edit/add?
Offline
That's written on top of my message :
I add links to the menu bar using Local file Editor plugin.
In its local config tab
Offline
Thank you Katryne for the response.
If you could guide me a little further it would be appreciated. If I did not want to create links with a drop down menu but a single static link to another website opening in the same window how would that work?
Would it look something like this:
$conf = array(
'https://chauvigne.info/' => array('label' => 'Ma Tribu', 'new_window' =>false, 'eval_visible' => 'return true;'),
);
Last edited by March411 (2023-11-21 18:53:11)
Offline
I do not know. Wait for somebody else : if I try your code, it gives me a blank page.
Note if it happens to you and you cannot enter admin to correct, go by ftp to local/config/config.inc.php and modify the file.
Offline
Katryne wrote:
I do not know. Wait for somebody else : if I try your code, it gives me a blank page.
Note if it happens to you and you cannot enter admin to correct, go by ftp to local/config/config.inc.php and modify the file.
Thanks for giving it a try Katryne, it is most appreciated! I will continue to research and learn.
Offline