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:
http://www.domesticblissinc.com/gallery2/main.php
Deets:
Gallery version = 2.2.3 core 1.2.0.5
PHP version = 4.3.11 apache
Webserver = Apache/1.3.34 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.11 FrontPage/5.0.2.2635 mod_ssl/2.8.25 OpenSSL/0.9.7a
Database = mysql 4.0.27-standard, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, NetPBM, ImageMagick, LinkItemToolkit, Thumbnail, Gd
Acceleration = none, none
Operating system = Linux host.gserver2.com 2.4.20-021stab028.19.777-smp #1 SMP Wed Oct 19 13:25:22 MSD 2005 i686
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) AppleWebKit/419.3 (KHTML, like Gecko) Safari/419.3
Rows in GalleryAccessMap table = 120
Rows in GalleryAccessSubscriberMap table = 2839
Rows in GalleryUser table = 5
Rows in GalleryItem table = 2803
Rows in GalleryAlbumItem table = 37
Rows in GalleryCacheMap table = 0
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
add you link just after:
<div class="{$class}">
Some themes have this setting but matrix for example does not.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
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?
Posts: 27300
http://codex.gallery2.org/Gallery2:User_Contributions#Modules try these modules:
Contact Owner
Links Page
About Page
Links In The Head
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 21
Disco.
Thanks!
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?
Posts: 27300
DRIVE,
What is 'this'?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
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!
_____________________
Luxury Car Wallpaper - Sexy Wallpaper
Posts: 27300
modules/core/templates/blocks/BreadCrumb.tpl
to
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 421
Here is my Breadcrumb.tpl file, I can't find the code you posted above:
_____________________
Luxury Car Wallpaper - Sexy Wallpaper
Posts: 27300
Perhaps you need my glasses?
after:
<div class="{$class}">
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
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?
_____________________
Luxury Car Wallpaper - Sexy Wallpaper
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