Keyword

Display articles from multiple categories

  • Hubert
  • Hubert's Avatar Topic Author
  • Offline
  • New Member
More
9 years 9 months ago #135655 by Hubert
Hi all,

I'm new to K2 and wonder if it will solve one of my cases.
I'd like to create personal portfolio, with articles from several categories.
Standard Joomla 'category blog' would be the best solution, but I need to display articles separately according to categories and display name of categories at the beginning, like that:

Category name 1:
Element 1
Element 2
Element 3

Category name 2:
Element 1
Element 2
Element 3 and so on..

Here's the layout I am trying to accomplish: capitalone.pl/doswiadczenie/
Can I do that with K2?

Thanks in advance for any help
Hubert

Please Log in or Create an account to join the conversation.

More
9 years 9 months ago #135664 by alexandria
Replied by alexandria on topic Display articles from multiple categories
Hi

Maybe you can try 2 modules k2 content , one under the other

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 9 months ago #135674 by Krikor Boghossian
Replied by Krikor Boghossian on topic Display articles from multiple categories
You can try what alexandria suggested or use the latest items from categories menu item.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Hubert
  • Hubert's Avatar Topic Author
  • Offline
  • New Member
More
9 years 9 months ago #135705 by Hubert
Replied by Hubert on topic Display articles from multiple categories
Hi alexandria, Krikor,
thank you both for input.

I've tried both your suggestions and both might solve my problem, but with both I'm missing something.

alexandria, in K2 content module, is it possible to display articles in more than 1 column? I can't find this option in module's setting. I went to category configuration and there set a number of columns, but it doesn't seem to impact display of the module. if I could set number of columns in module, it would solve my problem

Krikor, when using latest items menu element, I can choose several categories to display and set number of columns. But it seems like every category is displayed in separate column (and if I set number of columns to 4 and number of categories to two, only two columns are filled and the other two are empty). Is it possible to display items in row and separate them, like this:

Category name 1:
----
Item 1 | Item2 | Item 3 | Item 4
Item 5 | Item 6| Item 7 | Item 8

Category name 2:
---
Item 1 | Item 2 | Item 3 | Item 4
Item 5 | Item 6 | Item 7 | Item 8 and so on..


What I'm asking is, is there any way to configure that with component/module/plugin settings in any of two ways above, or do I have to dig into css and code?

Thanks in advance!
Hubert

Please Log in or Create an account to join the conversation.

More
9 years 9 months ago - 9 years 9 months ago #135716 by alexandria
Replied by alexandria on topic Display articles from multiple categories
Hello,
I'm sorry, i think it's not possible to achieve columns without playing with the css like that maybe :
.k2ItemsBlock ul li { width:22.4% !important; float:left!important; padding:10px!important; }
.k2ItemsBlock ul li:nth-child(5), .k2ItemsBlock ul li:nth-child(9), .k2ItemsBlock ul li:nth-child(13) { clear:both!important; }
.k2ItemsBlock ul li.even { background: #F2F2F2;!important; }

but i know module Gavick news show pro gk5 have columns because i'm using it to do something like this and it is free.
Last edit: 9 years 9 months ago by alexandria.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 8 months ago #135773 by Krikor Boghossian
Replied by Krikor Boghossian on topic Display articles from multiple categories
CSS is needed indeed since it is a templating issue. The only thing that I would caution you against using !important this much.

Furthermore you should make an override for this module and add some custom classes so you won't have a conflict elsewhere in your site.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum