By Kai on Wednesday, 09 April 2014
Posted in Technical Issues
Replies 11
Likes 0
Views 512
Votes 0
Is it possible to override the category layout for one specific category? I want to have one category display more like a blog layout.
Hello K,

Sorry for late reply to this,
Correct me if i getting wrong your meaning, do you mean that you would like to display one specific category in one page right?
If no, can you elaborate your question with more details or provide us with a sample blog layout, and include a screen shot of what you are referring to ? Please advise.
·
Wednesday, 09 April 2014 10:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,


Correct me if i getting wrong your meaning, do you mean that you would like to display one specific category in one page right?


Yes, that's correct! I would like to customize the template/layout for this one specific category. It's probably not built in but maybe you can give me an idea on the strategy or files to look at for hacking?
Kai
·
Wednesday, 09 April 2014 12:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello K,

If i'm not wrong this method should be meet your requirement here, GOTO > Backend > Menus > Menu item > Click "NEW" button > Click select in Menu Item Type > select "Easyblog" > Choose Single Category Layout ( http://screencast.com/t/TEKFOseJm2a6 ) > then click select/change in Category ( http://screencast.com/t/UUPWo5fw ) > Save.

Then you can see this menu item only display what you select for display specific category in this menu item. Hope this help.
·
Wednesday, 09 April 2014 15:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

I realize I can create a menu link to a specific category. But what I'd like is to customize the layout of this ONE category only.

Here's another way to word my original question: changing the EasyDiscuss theme changes the look globally across EasyDiscuss. Is it possible to have a single category display slightly differently?

I hope you understand what I am after.
Kai
·
Wednesday, 09 April 2014 16:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello K,

Sorry for late reply to this,
Is it possible provide us a sample screenshot regarding your requirement "I want to have one category display more like a blog layout." ? So we can know what your exactly requirement? Please advise.
·
Wednesday, 09 April 2014 18:18
·
0 Likes
·
0 Votes
·
0 Comments
·
I want to have a category display more or less like Easyblog: http://demo.stackideas.com/easyblog
Kai
·
Thursday, 10 April 2014 02:00
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello K,

Sorry for late reply to this,
Do you mean that category module? -> http://screencast.com/t/Uf8Cst2Ji
If yes, we have the Easydiscuss module called mod_easydiscuss_categories.zip , it will display the layout similar with you saw the Easyblog category module from our demo site.

If no, I'm a little lost here, do you want to display the specific category and discussion post in one page or you would like to put a category module in your page? Please advise.
·
Thursday, 10 April 2014 11:03
·
0 Likes
·
0 Votes
·
0 Comments
·
No, that's not what I mean at all.

If no, I'm a little lost here, do you want to display the specific category and discussion post in one page or you would like to put a category module in your page? Please advise.


I want to display this one specific category, with all posts just like any other category. But I want to alter the PHP/HTML output of this one category without affect other categories.



I don't know how else to better explain it to you

What file controls the display of the category... /components/com_easydiscuss/themes/simplistic/frontpage.category.php?
Kai
·
Thursday, 10 April 2014 11:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello K,

I'm really sorry that misunderstanding in previous replied
Yes, that is you mentioned the correct file -> JoomlaFolder/components/com_easydiscuss/themes/simplistic/frontpage.category.php
But that was not possible to do this, because this file is display all the different category page layout. Hope you understand.
·
Thursday, 10 April 2014 12:00
·
0 Likes
·
0 Votes
·
0 Comments
·
There are a couple ways to solve this. Let me know if you have further input.

1) Create menu link to specific category and use CSS by targeting <body> tag's Itemid, for example:
body.itemid-527 div.discuss-category-info { display: none; }


This will target only Itemid 527, and future ED upgrades will not wipe out changes.

But I do have problems with duplicate content with this, using SEO setting "Use Current Active Menu ItemId"

2) add PHP code in frontpage.category.php to check for category ID ($category->id) and serve up different template code
Kai
·
Friday, 11 April 2014 17:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Kai,

Sorry for delayed of this reply,
If I'm not wrong, regarding this file JoomlaFolder\components\com_easydiscuss\themes\simplistic\frontpage.category.php already have get $category->id code inside.
·
Tuesday, 15 April 2014 19:40
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post