Jump to content
ArtcoInc

How to edit the breadcrumb in Phoenix

Recommended Posts

(Phoenix 1.0.7.10)

In a stock installation of Phoenix, the breadcrumb looks like this:

1227173699_ScreenCapture2020-11-5.jpg.482f9df597519c46d6d7e03ff1708bd2.jpg

Installed on my WAMP server, the first crumb (the house) links to the root of my web server (either localhost or the IP address of server). The second crumb links to the sub-directory where /index.php is located (relative to the shop's root directory).

I want to eliminate the first crumb, and change the word 'Catalog' to the house icon. In the good old days, this was a simple edit to the application_top.php file ...

//  $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER);
//  $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT));
  $breadcrumb->add(HEADER_TITLE_TOP, tep_href_link(FILENAME_DEFAULT));

How do I do this now in Phoenix?

TIA

Malcolm


Get the latest Responsive osCommerce CE (community edition) here .

Share this post


Link to post
Share on other sites

In the even better, more modular and awesome new days :D have a look in the language file of the Breadcrumb module (includes/languages/english/modules/content/header/cm_header_breadcrumb.php)


Help shape the future of Phoenix; join the Phoenix Club

Share this post


Link to post
Share on other sites

@burt

Thank you! In it, I replaced this:

  const MODULE_CONTENT_HEADER_BREADCRUMB_TITLES = [
    '<i class="fas fa-home"></i><span class="sr-only"> Home</span>' => null,
    'Catalog' => 'index.php',
  ];

with this:

  const MODULE_CONTENT_HEADER_BREADCRUMB_TITLES = [
    '<i class="fas fa-home"></i><span class="sr-only"> Home</span>' => 'index.php',
  ];

It seems to work. Did I do that right?

Malcolm


Get the latest Responsive osCommerce CE (community edition) here .

Share this post


Link to post
Share on other sites
13 minutes ago, ArtcoInc said:

It seems to work. Did I do that right?

If that is what you wanted to do:  remove the Catalog link and change the home icon to point where Catalog did previously. 

1 hour ago, ArtcoInc said:

In the good old days, this was a simple edit to the application_top.php file ...

ITYM:  in the bad old days, this required an edit to a core application file.  In the good new days, this only requires a simple edit to a language file. 


Always back up before making changes.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×