Probably easy help. Trying to locate the breadcrumb file in v1.4.3-pl2.
diverguy
Joined: 2003-08-22
Posts: 24 |
Posted: Sat, 2008-02-23 16:04 |
The following information is required to get an answer: Been searching through the folders for two hours and have been unable to find it. Can someone please tell me which file contains the breadcrumb trail? I would like to edit it to add "Home" and a link to my website home page just to the left of the Gallery link. Probably very simple for someone that knows this software well. Any help would be appreciated. Thanks. |
|
Posts: 6818
Hello,
in this old (and buggy and not PHP5 compatible) version its unfortunately not encapsulated.
Its in every file where a breadcrumb is used.
Text is saved in this array: $breadcrumb["text"]
Its via includeLayout('breadcrumb.inc');
If you want to add a text before the existing text then you need to do a:
array_merge($breadcrumb["text"], array('My nice text, or HTML'));
Adding a text after: $breadcrumb["text"][] = 'My nice text, or HTML';
This must be done before the includeLayout statement.
If you want to add a text for EVERY breadcrumb, then simply edit layout/breadcrumb.inc
Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6
Posts: 24
Thanks Tim_j. After discussing your comments and my thoughts with my web hosting company, they dropped Gallery 2.2.4 on my site. Looks like a plugin for that might take care of what I wanted, in the first place. Appreciate you taking the time to help.
Posts: 6818
Gallery 2.2.4 is FAR FAR better then 1.4.3! Good choice ;-)
Jens
--
Last Gallery v1 Developer.
Tryout the TEST-Version of Gallery 1.6