By lawrence howlett on Tuesday, 28 October 2014
Posted in Technical Issues
Replies 5
Likes 0
Views 474
Votes 0
Hi,

PFA,

Here we used custom page title module and used get page title function,
now we need category name for each post instead of blog detail page title,
can you suggest me how to display blog category in blog detail page?
Hello lawrence howlett,

Unfortunately that was no setting to do this, but i can provide some simple code in this file
JoomlaFolder\components\com_easyblog\controller.php
LINE 729

// 193 is the single category menu item id, so you have to follow your single category menu item id
if(JRequest::getString('Itemid') == 193)
{
$id = JRequest::getInt('id');
$category = EasyBlogHelper::getTable('Category');
$category->load($id);
$title = $category->title;
$desc = $category->description;
}

You have to create the single category layout, so it will appear the category name instead of blog site title.
·
Wednesday, 29 October 2014 01:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Thanks for your reply but in my controller.php file there is only 618 line when i put your code.
here i attached my controller.php file,
also i have attached ftp details with this mail please check and need to be fix soon.
·
Wednesday, 29 October 2014 13:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Lawrence,

I've checked your site and seems like the module is getting the category name already: http://screencast.com/t/RUELdqnG . Did I missed anything? Please advise.
·
Wednesday, 29 October 2014 16:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes i already done that.

Thanks.
·
Wednesday, 29 October 2014 17:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Lawrence,

Great. If you have anything, do refer back to us.
·
Wednesday, 29 October 2014 18:10
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post