Link to home page from Breadcrumb
hovering
![]()
Joined: 2003-06-04
Posts: 21 |
![]() |
How do I put a link to my home page (index.html) at the beginning of my G2 breadcrumb? OK. I have spent the past few days searching for this. It can't be this hard and I imagine others have already asked this question. Anatomy of a Theme has helped me understand the structure of things a bit, but my programming skills are from the 80's and I must cobble things together... search keywords (modify, breadcrumb, gallery2, matrix, home, link, and others) aren't getting me there either. Help? Thanks. ~Hovering Website: Deets: Gallery version = 2.2.3 core 1.2.0.5 |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Step by step: 1. First create new subdir "local" in "gallery2/modules/core/templates/blocks/". 2. Copy BreadCrumb.tpl to this new subdir 3. Change local/BreadCrumb.tpl Some themes have this setting but matrix for example does not. Dave _____________________________________________ |
|
hovering
![]()
Joined: 2003-06-04
Posts: 21 |
![]() |
Thank you floridave. That all makes perfect sense now. And it works. http://www.domesticblissinc.com/gallery2/main.php Which makes me wonder.. Where would I go to put a CONTACT link in front of the Login link on the right side? |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
http://codex.gallery2.org/Gallery2:User_Contributions#Modules try these modules: Contact Owner Dave |
|
hovering
![]()
Joined: 2003-06-04
Posts: 21 |
![]() |
Disco. Thanks! |
|
DRIVE
Joined: 2007-12-04
Posts: 3 |
![]() |
This does not work with the Matrix theme. It inserts the separation character before home (> home). What is the proper way to add a static link in the breadcrumbs? Anyone? |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
DRIVE, Dave |
|
bigu_c
![]()
Joined: 2007-10-28
Posts: 421 |
![]() |
See my site: www.girlondesktop.com Please tell me how to change Celebrity Wallpaper, Girl Wallpaper, Sexy Wallpaper & Bikini Wallpaper in Bread-Crumb to "Home" and KEEP site title! Thank you! |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
modules/core/templates/blocks/BreadCrumb.tpl {foreach name=parent from=$theme.parents item=parent} {if !$smarty.foreach.parent.last} <a href="{g->url params=$parent.urlParams}" class="BreadCrumb-{counter name="BreadCrumb"}"> {if $smarty.foreach.parent.first}home{else} {$parent.title|markup:strip|default:$parent.pathComponent}{/if}</a> {else} <a href="{g->url params=$parent.urlParams}" class="BreadCrumb-{counter name="BreadCrumb"}"> {if $smarty.foreach.parent.first}home{else} {$parent.title|markup:strip|default:$parent.pathComponent}{/if}</a></a> {/if} {if isset($separator)} {$separator} {/if} {/foreach} to {foreach name=parent from=$theme.parents item=parent} {if !$smarty.foreach.parent.last} <a href="{g->url params=$parent.urlParams}" class="BreadCrumb-{counter name="BreadCrumb"}"> {if $smarty.foreach.parent.first}home{else} {$parent.title|markup:strip|default:$parent.pathComponent}{/if}</a> {else} <a href="{g->url params=$parent.urlParams}" class="BreadCrumb-{counter name="BreadCrumb"}"> {if $smarty.foreach.parent.first}home{else} {$parent.title|markup:strip|default:$parent.pathComponent}{/if}</a></a> {/if} {if isset($separator)} {$separator} {/if} {/foreach} Dave _____________________________________________ |
|
bigu_c
![]()
Joined: 2007-10-28
Posts: 421 |
![]() |
Here is my Breadcrumb.tpl file, I can't find the code you posted above: Quote:
{* _____________________ |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Perhaps you need my glasses? Dave |
|
bigu_c
![]()
Joined: 2007-10-28
Posts: 421 |
![]() |
I have this problem: Please view: http://www.girlondesktop.com/v/Movie_Star/Angelina_Jolie/ In navigation is: Home » Movie Star Wallpaper » Angelina Jolie Wallpaper But: http://www.girlondesktop.com/v/Movie_Star/Angelina_Jolie/Angelina+Jolie+_79_.jpg.html The navigation is: Home » Home » Angelina Jolie Wallpaper » Free Wallpaper Desktop Angelina Jolie May I did something wrong? |
|
bigu_c
![]()
Joined: 2007-10-28
Posts: 421 |
![]() |
Ok, I can do it now, but when click to "home", it forward me to domain/index.php But I want forward me to domain.com/ only. Please help. Thanks1 |
|