How to display breadcrumbs in search results?

Your code modifications and patches you want to share with others.
Locked
geoffmyers
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Sat Aug 08, 2009 11:54 pm

How to display breadcrumbs in search results?

Post by geoffmyers » Mon Dec 13, 2010 10:32 pm

Does anybody know how to add breadcrumbs / paths to Joomla! search results for each result? Please let me know as I would greatly appreciate it. I'm assuming there's just a PHP file somewhere that I need to add code to. Thanks! :)

User avatar
enbees
Joomla! Guru
Joomla! Guru
Posts: 860
Joined: Mon Sep 20, 2010 7:58 am
Location: Jakarta - Indonesia
Contact:

Re: How to display breadcrumbs in search results?

Post by enbees » Sat Dec 18, 2010 8:14 am

Not sure if the following hack will work for you, but it does work for me:

/components/com_search/views/search/view.html.php about line 175,

Code: Select all

...
$pathway->addItem('Search Result', ''); //INSERT THIS
parent::display($tpl);
I hope it helps :)
Regards,
enbees, I'm here: http://koperasoft.com

geoffmyers
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Sat Aug 08, 2009 11:54 pm

Re: How to display breadcrumbs in search results?

Post by geoffmyers » Sat Dec 18, 2010 3:38 pm

enbees wrote:Not sure if the following hack will work for you, but it does work for me:

/components/com_search/views/search/view.html.php about line 175,

Code: Select all

...
$pathway->addItem('Search Result', ''); //INSERT THIS
parent::display($tpl);
I hope it helps :)
Thanks for the response, but this is not what I'm looking for. I want each result in the search results to display the breadcrumbs for that result, whether it be an article or part of a Joomla! component. Anybody know how to do this?


Locked

Return to “Core Hacks and Patches”