- Posts: 11
COMMUNITY FORUM
Variable article html link to item, title, etc etc
- Lazer Orca
-
Topic Author
- Offline
- New Member
Less
More
10 years 7 months ago #132788
by Lazer Orca
Variable article html link to item, title, etc etc was created by Lazer Orca
Hi there... I am trying to set up a grid... first half has a large image with an item... the second half is divided into 4 parts with images. I would like the article with the most hits to show up in my first grid and I would like second, third, fourth, and fifth highest hits in the next grid. how would I achieve that with k2 items?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 7 months ago #132789
by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Variable article html link to item, title, etc etc
The grid can be easily set up from your category's settings.
The same applies to the items image sizes.
Lastly from the same view (category settings) you change the ordering of the items to match your content's needs.
The same applies to the items image sizes.
Lastly from the same view (category settings) you change the ordering of the items to match your content's needs.
Please Log in or Create an account to join the conversation.
- Lazer Orca
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 11
10 years 7 months ago - 10 years 7 months ago #132790
by Lazer Orca
Replied by Lazer Orca on topic Re: Variable article html link to item, title, etc etc
how would I do that? I am trying to get the grid to show up on my homepage, not the category view. I am confused now haha. I am trying to do this through custom html modules
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
Less
More
- Posts: 8743
10 years 7 months ago #132791
by Lefteris
Replied by Lefteris on topic Re: Variable article html link to item, title, etc etc
@Lazer Orca
You cannot do this using modules. None of the bundled K2 modules include options for grid. You need to create a menu link to that category. Then go and edit the category in administration and apply the desired grid, images and ordering settings.
You cannot do this using modules. None of the bundled K2 modules include options for grid. You need to create a menu link to that category. Then go and edit the category in administration and apply the desired grid, images and ordering settings.
Please Log in or Create an account to join the conversation.
- Lazer Orca
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 11
10 years 7 months ago - 10 years 7 months ago #132792
by Lazer Orca
Replied by Lazer Orca on topic Re: Variable article html link to item, title, etc etc
do you know if there are free third-party solutions to what I am asking? Somewhere in all of that code, you can get this to work because you can display it in different areas. "?most.popular=top.php something or another" or whatever the code is... I don't understand all of this, but it is somewhere. I'm just seriously struggling with all of the rigidity, but also I am very new to all of this. I don't know where to dive in to learn all of this. I have ideas for what I want, but I don't know how to implement it. I don't even know where to look or have the vocabulary to properly google this stuff.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 7 months ago #132793
by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Variable article html link to item, title, etc etc
The K2 Content module can also be overriden. You can use Bootstrap's or Foundation's grid to produce the desired grid layout.
Depending on the count of the item (1st, 2nd, 3rd etc) you have to print a different CSS class.
Depending on the count of the item (1st, 2nd, 3rd etc) you have to print a different CSS class.
Please Log in or Create an account to join the conversation.