add 'home' link to breadcrumb Gallery2
godt09
Joined: 2010-06-12
Posts: 10 |
Posted: Thu, 2010-07-08 04:51 |
I am using the carbon theme, but I guess it is universal: I have read all the forum posts related to this question of adding a link to the breadcrumb to provide a return to my main site, but I cannot find any detail which refers to breadcrumb.tpl which looks like the one I have (3.3). This one, for example: http://gallery.menalto.com/node/78116 does not help, I assume because I have Revision: 17592 Can someone point me to instructions for doing this? |
|
Posts: 10
No I don't - I have 17159. Theme.tpl is 17592. What I want to do is add it to the breadcrumb, as few people would click the logo.
Posts: 16504
There's this really old mod:
http://gallery.menalto.com/node/30964#comment-130313
But that's pretty old and may be out of date.
BreadCrumb.tpl is located at /modules/core/templates/blocks/BreadCrumb.tpl so you should be able to edit that and get the link you want.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 10
Yes, I have tried inserting a link in there above the breadcrumb, but it won't appear. I really can't make sense of how to use the "{g->url", so it may be due to that omission.
Posts: 10
double post
Posts: 16504
Don't worry about the {g->url smarty markup stuff. Just use plain HTML
Make sure you're following this guide to create a local directory:
http://codex.gallery2.org/Gallery2:Editing_Templates
Also try clearing Gallery's cache after making the changes:
FAQ: How can I clear cached data?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 10
Got it working. Not sure why...
<div class="{$class}">
<a href="/" class="BreadCrumb-1">Home</a>
works well enough. Thanks for your thoughts.