By Tima on Thursday, 24 September 2015
Posted in General Issues
Replies 7
Likes 0
Views 0.9K
Votes 0
Hello,

Every blog in breadcrumb display blogger name . Is it a way that can display category name instead of name of blogger

For ex. - Home - Blog - Author Name - Post Title is current structure . How to change it to Home - Blog - Category Name - Post Title
Hi Tima,

Try this. Open file JOOMLA/components/com_easyblog/views/entry/view.html.php and look for below code at line 69:


if (!EBR::isCurrentActiveMenu('blogger', $post->author->id) && $this->config->get('layout_blogger_breadcrumb')) {
$this->setPathway($post->author->getName(), $post->author->getPermalink());
}


Replace the above block of code with following:


$this->setPathway($post->getPrimaryCategory()->getTitle(), $post->getPrimaryCategory()->getPermalink());


Hope this help
Sam
·
Thursday, 24 September 2015 12:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you! It's help!
·
Thursday, 24 September 2015 23:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Tima,

You are most welcome. Glad to hear that your issue has been resolved now.
·
Friday, 25 September 2015 16:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Is there a way to do this now? The code looks different now.

if( ! EasyBlogRouter::isCurrentActiveMenu( 'blogger', $blogger->id ) && $config->get( 'layout_blogger_breadcrumb') )
{
$this->setPathway( $blogger->getName() , $blogger->getLink() );
}

If I try plugging in the code you provided, it crashes the blog section of the site.

Thanks!
·
Friday, 01 April 2016 12:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Actually that above code is from Easyblog 5 instead of Easyblog 3.9.

I believe your code is coming from Easyblog 3.9, that is why it show different code.

I am really sorry that I can't assist you as we normally do not provide customization support as outlined in http://stackideas.com/support

It would be best if you can upgrade your Easyblog to 5.x
·
Friday, 01 April 2016 16:24
·
0 Likes
·
0 Votes
·
0 Comments
·
In version 5 the option is presente in Settings > Layout > General
·
Friday, 06 May 2016 04:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for sharing Sergio

Backend > Easyblog > Settings > Layout > General > Display Author Name In Breadcrumb - YES
·
Friday, 06 May 2016 15:27
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post