Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 06-25-2009 08:25:45

sleeper
Member
Registered: 10-29-2004
Posts: 332

Display Home link within breadcrumbs whne on splash page

I thought i might have found a post on this, but it seems im on my own with this one...

How can i modify the breadcrumbs include to display the 'Home' link when on the landing/slash page?

At the moment breadcrumbs only kick in once you click into a categoyr/product but i would like to display the Home link as soon as you land on the site.


- Steve


Specialists in ClickCartPro Design

Offline

 

#2 06-25-2009 08:30:39

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: Display Home link within breadcrumbs whne on splash page

You should be able to force them to always be displayed by modifying the "Breadcrumbs Display" XHTML include.  You'll see a flag that controls whether or not the breadcrumbs should be displayed and you could force it to always be on.  You'll end up with breadcrumbs on additional pages as a result of course but that simple change may meet your needs.

Offline

 

#3 06-25-2009 09:06:15

sleeper
Member
Registered: 10-29-2004
Posts: 332

Re: Display Home link within breadcrumbs whne on splash page

Hi Dave,

I've found the flag, but i don't have a clue how to force it to always be on, which would suit my needs perfectly.


- Steve


Specialists in ClickCartPro Design

Offline

 

#4 06-25-2009 09:12:15

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: Display Home link within breadcrumbs whne on splash page

$variablename = 1;

Offline

 

#5 06-25-2009 10:19:14

sleeper
Member
Registered: 10-29-2004
Posts: 332

Re: Display Home link within breadcrumbs whne on splash page

Where do i put this/what do i change Dave?

Code:

<?php 

$eol    = $this->globals('khxc.eol');
$bc     = $this->globals('ecom.breadcrumbs');
$links  = '';

if (!(empty($bc))) {

     print '<div class="khxc_storelink">' . $eol;

     print '<p> ' . $eol;

     foreach ($bc as $num => $data) {

          $name = $data['name'];

          if ($name == 'STOREHOME') {$name = 'Home';}

          $link = $data['link'];
          $name = $this->xhtml_encode($name);

          if ($num != 0) {$links .= ' &gt; ';}

          $links .= '<a href="' . $link . '" title="' . $name . '">' . $name . '</a>' . $eol;

     } // End of foreach statement.

     print $links . '</p>' . $eol . $eol;

     print '</div>' . $eol . $eol;

} // End of if statement.

?>

- Steve


Specialists in ClickCartPro Design

Offline

 

#6 06-25-2009 10:22:14

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: Display Home link within breadcrumbs whne on splash page

Add $bc = 1; right before if (!(empty($bc))) {

Offline

 

#7 06-25-2009 10:36:21

sleeper
Member
Registered: 10-29-2004
Posts: 332

Re: Display Home link within breadcrumbs whne on splash page

I've already tried that one Dave and it returns an error?

Code:

Invalid argument supplied for foreach()

- Steve


Specialists in ClickCartPro Design

Offline

 

#8 06-25-2009 10:42:03

Dave
Member
Registered: 07-05-2003
Posts: 11233

Re: Display Home link within breadcrumbs whne on splash page

Ah, that indicates that there is no breadcrumb to be displayed (since it isn't expected to be there all the time).  Restore the original logic that was there but leave your $bc = 1; there.  This isn't going to solve your problem though since there isn't going to be anything in the breadcrumbs to be displayed.

You'd almost be better off leaving the existing logic and simply adding an else to display something.

Offline

 

#9 06-25-2009 10:54:50

sleeper
Member
Registered: 10-29-2004
Posts: 332

Re: Display Home link within breadcrumbs whne on splash page

Thanks Dave, yes i think an else statement would work, let me have a go at that, hopefully i'll be able to do this one smile


- Steve


Specialists in ClickCartPro Design

Offline

 

#10 06-25-2009 10:57:02

sleeper
Member
Registered: 10-29-2004
Posts: 332

Re: Display Home link within breadcrumbs whne on splash page

Well that was easy and does just what i want big_smile

Thanks again Dave


- Steve


Specialists in ClickCartPro Design

Offline

 

Board footer