Editing Breadcrumb - Removing "home" Editing Breadcrumb - Removing "home"
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Editing Breadcrumb - Removing "home"

Started by DKP, May 16, 2004, 04:28:50 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

DKP

Hi, I'm trying to remove the "home" bit in the breadcrumb, as I want the different categories to be completely seperate, but I like the breadcrumb, I just want it only to go back to the top category.
I've spent the last couple of horus going through code and cannot find where this is done!
If someone would be able to point me in the right direction, that would be great!

E.G. What I want to show in the breadcrumb:

Category > SubCategory > Album

EDIT::::
Of course, 5 minutes after posting this I figure it out.
For those curious,
inculde/functions.inc.php

deleted the following two lines in the "breadcrumb" function
                $breadcrumb = '<a href=index.php>'.$lang_list_categories['home'].'</a>';
                $BREADCRUMB_TEXT = $lang_list_categories['home'];

The only problem is now there is a leading ">" and right now I'm too lazy to code that away.
Oh well!

ddmf

#1
Nice hack, thanks... As for the leading ">" there's a couple of lines after that look like :

                        $link = "<a href=index.php?cat={$category[0]}>{$category[1]}</a>";
                        $breadcrumb .= ' > ' . $link;

simply change the second line to:

                        $breadcrumb.= $link;
:)

Casper

If you want your users of cat 'A', be be totally separate, and see differnt things completely than users of group 'B', why not just do 2 (or more) separate installs.  Then you will have even more control of the groups.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

DKP

Thanks ddmf --
I should probably have seen that, but I was in a hurry to go, and thought it was inside a loop. Oh well! Thankyou!

Casper, I only have one installation mainly because I'm using the Netfirms installation (they set everything up for you), and they limit how many installations they'll do, but also because I'm plain lazy and would rather just have it work this way - the second albumn isn't permanent, I'm just using it because I need a gallery of sorts for another site I'm building, and I already have a netfirms account with spare space/bandwidth :D

ddmf

Nae bother... It's actually something that kinda helps me too, as i'm wanting categories to be seperate entities within 1 site...