Hi!
I have a blog in the same host, but in another directory. Now the main page is piwigo, so, I need to put a link to my blog in the header of the site. The menu may be a good idea. How can I do that?
Thank you.
Offline
1/ In the wiki
wiki wrote:
// links : list of external links to add in the menu. An example is the best
// than a long explanation :
//
// $conf['links'] = array(
// 'http://phpwebgallery.net' => 'PWG website',
// 'http://forum.phpwebgallery.net' => 'PWG forum',
// 'http://phpwebgallery.net/doc' => 'PWG wiki'
// );
//
// If the array is empty, the "Links" box won't be displayed on the main
// page.
$conf['links'] = array();
Offline
hi ddtddt !
I took a look in the wiki (=
Thank you!
Offline
I have this same request but i do not understand the response, do i need to put that code somwhere. sorry im a noob
For 1
Plugin [extension by Piwigo Team] LocalFiles Editor
tab 1
paste code
Offline
Hello,
I didnt understand this either, but I tired adding that code in the local files editor but now I cant access any page of my gallery, not even the admin menu. What has happened?
Please help. I dont want to have to rebuild my whole site.
Boone
What releace piwigo you use ?
Offline
2.3.3
you can use extension 2.3.3
to delete local file
By FTP go to local/config/
rename config.inc.php to oldconfig.inc.php
you can paste your code on forum for help you to correct ;-)
Offline
Fantastique! Merci!
I had to delete the file twice for some reason but thank you that has fixed it perfectly. You have saved me a lot of time and frustration.
I would have posted code, had I known what file I should of been looking at and if I knew what code also ;)
However, my original issue still remains, how do I insert a blog or any other link for that matter in the menu bar?
I have attached an image with some red lines of where I potentially would like to insert links. Could you tell me which files or code I will need to edit to add links where these red lines are please?
Again thank you.
I struggled with this too. As a temporary measure, I added my outside links into the header in the configuration area. I too, am unable to figure out how to get it into the menu. I'm using Advanced Menu plugin, but it seems to prepend my domain name (http://www.snipmypic.com/index.php?3=ht … ic.com/xmb instead of going to the link snipmypic.com/xmb.
Offline
As far as the Advanced Menu plugin is concerned I have seen alot of posts with people suggesting to use this to add custom links, but like me, I dont think it answers the right question. Yes its a good plugin for custom links etc but it adds an extra menu/block whereas I would prefer the option of having at least one additional custom link in the menu bar.
I don't seem to have the same problem your having with the web address. In my Advance menu I have the links set up in a personalised menu like so...
<li><a href="http://example.com/blog" title="Blog">Blog</a></li> <li><a href="index.php?/contact" title="Contact form">Contact</a></li>
rather than the links tab in the Advanced Menu plugin. Then I just removed access to Menu and Specials blocks and voila, I have my own custom menu. When I click the blog link, it goes to the correct address unlike yours? :/ ...but I still want it in that menu bar!!! :D haha
Trial and error.... I HAVE THE ANSWER PEOPLE!
For those looking for this option:
In stripped only, you will have to try this in other themes yourselves.
Go to themes/stripped/template
find index.tpl, rename as indexOLD.tpl
open in a good editor and find
<div class="titrePage"> <div class="browsePath"> <span id="menuswitcher" title="{'Show/hide menu'|@translate}">{'Menu'|@translate}</span><span class="arrow"> »</span> <h2>{$TITLE}</h2> </div>
and replace with
<div class="titrePage"> <div class="browsePath"> <span id="menuswitcher" title="{'Show/hide menu'|@translate}">{'Menu'|@translate}</span><span class="arrow"> »</span> <a href="http://example.com" title="Blog">Blog</a><span class="arrow"> »</span> <h2>{$TITLE}</h2> </div>
Save as index.tpl, upload, and Bob's your uncle! :D
Your welcome.
Hi,
I made a backup of the index.tpl file and then changed the code as explained in the above message by boone, and it works great. (using the Stripped theme). I added "website" (which links to the main website) to the menu. However, I somehow an unwanted effect. I'm not sure what I did wrong. The word "titrepage" is up just above the breadthumb menu. See picture below. Here is a picture:
http://pgallery.winterssewing.com/
Here is the code as I changed it.
titrePage<div class="titrePage"> <div class="browsePath"> <span id="menuswitcher" title="{'Show/hide menu'|@translate}">{'Menu'|@translate}</span><span class="arrow"> »</span> <a href="http://winterssewing.com" title="Main Website">website</a><span class="arrow"> »</span> <h2>{$TITLE}</h2>
In trying to get rid of the "titrepage" label I replaced the original index.tpl file, but "titrepage" remained (and the addition of "website" to the menu also remained.) I cleared my browser cache. It still remained. I opened a different web browser. It still remained. Does Piwigo have a cache that I need to clear?
Does anyone know how to get rid of the "titrepage, or know what I did wrong?
Thanks,
Stephen
Last edited by Stephen Winters (2013-12-20 15:03:06)
Offline
Hello
don't you see the "titrePage" at the very begining of your code ?
Offline