- Posts: 5
COMMUNITY FORUM
K2 Tag display module in grid view [solved]
- richu
-
Topic Author
- Offline
- New Member
Thanks to andyw for the hack
For K2 v2.3. grid view with 3 column make changes to the following files
components/com_k2/templates/default/tag.php
components/com_k2/css/k2.css
tag.php
k2.css
Please Log in or Create an account to join the conversation.
- carl j
-
- Offline
- New Member
- Posts: 1
Thanks!
Mathias
Please Log in or Create an account to join the conversation.
- Jennifer Mladucky
-
- Offline
- New Member
- Posts: 6
Please Log in or Create an account to join the conversation.
- Brendan
-
- Offline
- New Member
- Posts: 3
Please Log in or Create an account to join the conversation.
- ELEFTHERIOS MANOLIS
-
- Offline
- Junior Member
- Posts: 28
Please Log in or Create an account to join the conversation.
- andyw
-
- Offline
- New Member
- Posts: 4
components/com_k2/templates/default/generic.php
components/com_k2/css/k2.css
If you want to display 4 columns, change the 3 and 33.3% to 4 and 25%, and so on.
Please Log in or Create an account to join the conversation.
- andrescalvoj
-
- Offline
- New Member
- Posts: 2
Thanks a lot for the tip!
Regards,
Andres
andyw said:
I did a quick hack to make the tag view to display in grid view with 3 columns. You need to make changes to the files components/com_k2/templates/default/generic.php components/com_k2/css/k2.css If you want to display 4 columns, change the 3 and 33.3% to 4 and 25%, and so on.
Please Log in or Create an account to join the conversation.
- ELEFTHERIOS MANOLIS
-
- Offline
- Junior Member
- Posts: 28
hello andyw
bravo for your excellent hack
it is possoble to help me with this problem?
when i display 'Tag' items with image (for example "poster tag"), the justify, crash.
Propably this happens because the images does not have the same length.
It is possible to set a specific length for all image?
thanks
Please Log in or Create an account to join the conversation.
- andyw
-
- Offline
- New Member
- Posts: 4
hello andyw
bravo for your excellent hack
it is possoble to help me with this problem?
when i display 'Tag' items with image (for example "poster tag"), the justify, crash.
Propably this happens because the images does not have the same length.
It is possible to set a specific length for all image?
thanks
Please Log in or Create an account to join the conversation.
- Albert
-
- Offline
- Senior Member
- Posts: 79
manolo said:
hello andyw
bravo for your excellent hack
it is possoble to help me with this problem?
when i display 'Tag' items with image (for example "poster tag"), the justify, crash.
Propably this happens because the images does not have the same length.
It is possible to set a specific length for all image?
thanks
Please Log in or Create an account to join the conversation.
- ELEFTHERIOS MANOLIS
-
- Offline
- Junior Member
- Posts: 28
from my
components/com_k2/templates/default/generic.php
components/com_k2/css/k2.css
thank you very much
Please Log in or Create an account to join the conversation.
- andyw
-
- Offline
- New Member
- Posts: 4
Please Log in or Create an account to join the conversation.
- ELEFTHERIOS MANOLIS
-
- Offline
- Junior Member
- Posts: 28
i change the files and now works fine
thank you very much
andyw said:I found that some changes I suggested was not made. I simply made those changes to your files, and let's see if that works.
Please Log in or Create an account to join the conversation.
- David Dahl
-
- Offline
- New Member
- Posts: 2
I've made the modifications suggested in this thread and have found them almost perfect for what I need to do.
Unfortunately, while I can create a menu item and have this work I cannot seem to use it within a module position. Is there any way, either with this method or another, to create a tag display in a grid format using a module that be placed around the page?
In my searching I have found this module (community.getk2.org/forum/topics/content-module-filter-by-tag-1?xg_source=activity) which displays the necessary tags but not in a grid format. Is there any way to modify this to display in a grid?
Any help is greatly appreciated.
Thanks!
-David
Please Log in or Create an account to join the conversation.
- Pieter
-
- Offline
- New Member
- Posts: 5
In some instances, I experience that an item has a lot of white space above it, because it clears both sides.
I use two columns. If the second item is longer than the first one, the third only starts below the second one, not directly below the first, which would be perfect:
1 2
1 2
2
3 4
3 4
3
5 6
5 6
etc.
Is there a way to tweek it so that items start directly after the item above it, not after the item diagonally above it?
Please Log in or Create an account to join the conversation.
- tazd
-
- Offline
- New Member
- Posts: 2
So if someone would be kind enough to let me exactly where in components/com_k2/css/k2.css i add the following or pop up a copy of their generic.php and k2.css
div.genericItemView {width:33.3%;float:left;} /* this is the item container for this view */
div.genericItemIntroText {font-size:inherit;font-weight:normal;line-height:inherit;padding:0 10px 0 10px;}
Many thanks in advance
Please Log in or Create an account to join the conversation.
- Goran Catic
-
- Offline
- New Member
- Posts: 1
Tried the code change but there seems to be no change on this version whatsoever.
Anyone?
Please Log in or Create an account to join the conversation.
- Rafael Figueiredo
-
- Offline
- New Member
- Posts: 1
I have an issue. I have an template that use k2 category with 16 itens, but in the tag layout appears only 10 itens.
Have a solution for this?
Thanks everybody!
Att,
Mexica.
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
Hi. Go to K2 parameters and check the option named "Item count for tag listings" .
Please Log in or Create an account to join the conversation.