PDA

View Full Version : Breadcrumb Navigation


Graham
08-15-2006, 09:22 PM
When selecting a cat or subcat, there isnt an obvious route back to the Home Page except for clicking the Logo ie :

» Clay Shooting » England

where I would expect

» Home » Clay Shooting » England

Clicking Home on the Main Menu doesnt seem to work ???

Have I set something (else) up wrong ?

Thanks
Graham

WTM
08-15-2006, 11:05 PM
Have you applied upgrade patch? Home button was fixed there.

For breadcrumbs... did you enter site title in the admin panel? (configs > General configurations)

Greg
08-15-2006, 11:36 PM
And at a later date if you would rather have "Home" instead of the site title, I'll post a simple mod for that.

Graham
08-16-2006, 07:50 AM
Hi Greg,

Thanks - I removed the site title from the config section as I thought it cluttered up the screen, and the site name was already evident from the Logo.

I only downloaded the Pro version yesterday, and havent applied any patches, is the patch to fix the HOME option on the menu available from the download section?

With regard to a mod - would it be possible to have home in the breadcrumbs while still leaving the site name in the config section blank?

I think there's enough in the home page without repeating the site name

http://www.topgun.org.uk

Thanks again for your help!!

Graham

WTM
08-16-2006, 08:47 AM
In your templates/your-template/Layout.php file find this section: /**
* Returns HTML code for breadcrumb display
*
* @param int $aCategory category id
* @param arr $aAdditional additional elements for breadcrumb
* @param bool $aFull if TRUE latest element is a link
*
* @return str
*/
function print_breadcrumb($aCategory, $aAdditional = '', $aFull = FALSE)
{
global $gDirDb;
global $gDirConfig;
global $gDirLang;

$out = '<div class="breadcrumb">';

if ($aCategory > 0)
{
$gDirDb->getBreadcrumb($aCategory, $breadcrumb);
$breadcrumb = array_reverse($breadcrumb);
}

$url = "{$gDirConfig['base']}{$gDirConfig['dir']}";
$out .= "<a href=\"{$url}\">{$gDirConfig['site']}</a>";
Replace part in red with word "Home" or whatever word you want and save file.

That's it.

Graham
08-16-2006, 09:20 AM
WTM - Thanks!!! Ive added that change and it's working great..

Thanks to you both (WTM & Greg) for some top class and quick support for a newbie :D

Greg
08-16-2006, 03:49 PM
Hi Greg,

Thanks - I removed the site title from the config section as I thought it cluttered up the screen, and the site name was already evident from the Logo.

I only downloaded the Pro version yesterday, and havent applied any patches, is the patch to fix the HOME option on the menu available from the download section?



Graham

Yes Download and apply the patch. It fixes other issues too.
Just overwrite the files. If you've made any changes you'll have to redo them. Such as the one above. You may have to also add the following changes (to your template) shown in this thread.

(ProVersion users "ONLY" forum)
http://www.esyndicat.com/forum/about5943.html

Graham
08-17-2006, 07:08 AM
Hi Greg, I downloaded and ftp'd the patch files onto my site, but the "HOME" on the main Menu still doesnt work - it isnt that much of an issue now as I have Home >> in the breadcrumbs - it would be nice to have it working though - can you tell me which file contained this particular fix - it may be that it didnt upload properly

Thanks
Graham

WTM
08-17-2006, 08:32 AM
Please check section #3 in the post Greg mentioned - this should fix the "home" button

Graham
08-17-2006, 09:02 AM
Please check section #3 in the post Greg mentioned - this should fix the "home" button

Do you mean this one: http://www.esyndicat.com/forum/about5943.html

I cant access that - I dont have sufficient rights..

Graham
08-18-2006, 11:31 AM
Ive added my details and PM'd to Simon in case this is in the pro forum which presumably I don't have access to yet. . . . . . .

Greg
08-18-2006, 02:52 PM
Ive added my details and PM'd to Simon in case this is in the pro forum which presumably I don't have access to yet. . . . . . .

Please see here:
http://www.esyndicat.com/forum/about6327.html

Simon wants to be "Emailed" only. No PM's for this type of thing.

Greg
08-18-2006, 03:02 PM
Do you mean this one: http://www.esyndicat.com/forum/about5943.html

I cant access that - I dont have sufficient rights..

Try this one. I forgot there was another sticky for this.
http://www.esyndicat.com/forum/about5944.html

Graham
08-19-2006, 06:10 AM
Thanks Greg modded the code and it's great now thanks - I'll resend the info to Simon by email

RGds
GRaham