By salvatore bonfiglio on Monday, 17 September 2018
Posted in General Issues
Replies 3
Likes 0
Views 508
Votes 0
Hello,
i'm using Grid View layout to show posts in a certain category but there is not the option to show category's description on top of the grid.

I found this option only in "classic" Category view.

Could you suggest how to customize grid layout for including category's description ?
You're most welcome.

You have to put that file into this template override path : JoomlaFolder/templates/yourCurrentTemplate/html/com_easyblog/blogs/grid/default.php
·
Tuesday, 18 September 2018 10:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

I am really sorry for the delay of this reply as it is a public holidays for us here.

By default grid layout will not show category description on the page because if user select multiple category to show all these post under grid layout, this page will become messy.

If you only select 1 category from this grid layout, maybe you can try this following code to retrieve category description.


$catId = $this->params->get('grid_post_category', array());

if ($catId && count($catId) == 1) {
$catId = implode("", $catId);

// Try to load the category
$category = EB::table('Category');
$category->load($catId);
}

echo $category->description;


That Grid layout code is under this file JoomlaFolder/components/com_easyblog/themes/wireframe/blogs/grid/default.php
·
Monday, 17 September 2018 09:32
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Alex, i edited the file and it worked

I'd like to use template override instead of directly editing the original file so i tried to put the modified file into
/templatyes/mytemplate/html/com_easyblog/themes/wireframe/blogs/grid
or into
/templatyes/mytemplate/html/com_easyblog/grid
but this din't work

Do you know which is the correct path to use ?
·
Monday, 17 September 2018 18:28
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post