K2 Tag View 3 Columns

GK User
Wed Feb 25, 2015 4:09 am
Hello, I would like to have a 3 column view for the tag section.

I understand there is a tag.php file just for that view, but can this be achieved only with CSS?

Link: http://www.mauzaza.com/cosmetic-indonesia

EDIT: I have a menu item for each of my tags if that makes it easier. The Menu Item/Option/Select a Template doesn't seems to have any effect on the view.

Thank you,
Regards
User avatar
Platinum Boarder

teitbite
Fri Feb 27, 2015 2:28 pm
Hi

Try this code:

Code: Select all
.latestView .itemView {
width: 33%;
float: left;
}

.latestView .itemView:nth-child(4n+4) {
clear: both;
}
User avatar
Moderator

GK User
Fri Feb 27, 2015 3:28 pm
Thanks!

Now i've got 1 column on the left. Only one.

Regards

http://www.mauzaza.com/queen-helene-products-indonesia
User avatar
Platinum Boarder

GK User
Tue Mar 03, 2015 8:28 am
Any ideas?

Thank you
User avatar
Platinum Boarder

teitbite
Fri Mar 06, 2015 10:31 am
Hi

Couple more lines is needed here. Please use this code instead:

Code: Select all
.latestView .itemView {
    clear: none;
    float: left;
    margin-top: 0;
    width: 33%;
}

.latestView .itemView:nth-child(4n+4) {
    clear: both;
}
User avatar
Moderator

GK User
Fri Mar 06, 2015 10:41 am
Hi Teitbite, this code below worked ( I added the last section to remove the "Array" string)

The only thing is that I have 2 lines of 3 columns then 2 lines of 1 column.
It seems to be consistent on all tag pages no matter how much the number of items there is.

Is it related to your .itemView:nth-child(4n+4) formula?

Regards

Code: Select all
/* TAG VIEW 3 column view */

.latestView .itemView {
    clear: none;
    float: left;
    margin-top: 0;
    width: 33%;
}

.latestView .itemView:nth-child(4n+4) {
    clear: both;
}


/* Remove Array bug in introtext of K2 TAGS view */

.latestView .itemView .itemBody.nodate { display: none; }
User avatar
Platinum Boarder

teitbite
Mon Mar 09, 2015 9:21 am
Hi

Try replacing (4n+4) to (3n+4) and it should be ok than.
User avatar
Moderator

GK User
Mon Mar 09, 2015 11:56 am
Hi Teitbite, it seems to have worked!

It always leave the page short of one item though. I can't seems to figure out why.

Code: Select all

/* TAG VIEW 3 column view */

.latestView .itemView {
    clear: none;
    float: left;
    margin-top: 0;
    width: 33%;
}

.latestView .itemView:nth-child(3n+4) {
    clear: both;
}



Thanks
Regards
User avatar
Platinum Boarder

teitbite
Tue Mar 10, 2015 8:37 pm
Hi

Where can I see it now ? The link points to a 404 page now.
User avatar
Moderator

GK User
Wed Mar 11, 2015 3:05 am
User avatar
Platinum Boarder

teitbite
Thu Mar 12, 2015 8:18 pm
Hi

I cannot track a menu item with this alias "queen-helene-products-indonesia". Where is it ?? I need to check it's settings.
User avatar
Moderator

GK User
Fri Mar 13, 2015 2:28 am
Hi Teitbite, it's under K2 Tags (Menu Type k2-tags).

Regards.
User avatar
Platinum Boarder

GK User
Fri Mar 13, 2015 4:21 pm
Hi

I tried to modify the k2.css to change the tag view and put it into 3 columns. But it has not worked me. What I can do?

My site is http://www.cenicana.org:83/web2/index.php/programas-de-investigacion/programa-de-procesos-de-fabrica

Thanks
User avatar
Fresh Boarder

teitbite
Mon Mar 16, 2015 11:11 am
Hi

@quebecguitare I cannot understand how it works ;/ If it's showing tags than why it's using a last items layout at Your website ?? That's really really strange. I have already adjusted tags number from 8 to 9 in K2 parameters, which should be answer but not in this case. Are You sure there is no other menu item or article with an alias similar to "queen-helene-products-indonesia" which can overwrite it ?
User avatar
Moderator

teitbite
Mon Mar 16, 2015 11:16 am
Hi

@Cenicana would be best if You will start a new thread since @quebecguitare issue may be a little bit different because of many modifcations.

In Your case I would say it's a matter of configuration for menu item, leading to this view. Please make a new thread and send me a link to it along with joomla panel access via PM.
User avatar
Moderator

GK User
Thu Aug 06, 2015 3:45 pm
Hi, I would like to accomplish the same thing as quebecguitare; multiple rows in the tag-view, but it doesn't seem to work. I'm using the Cloudhost template and my website is www.hisslink.nl (under "portfolio".) What am I missing?
User avatar
Gold Boarder

teitbite
Sun Aug 09, 2015 2:22 pm
Hi

Try use this code:

Code: Select all
.genericView .itemList article {
    clear: none;
    float: left;
    margin-top: 0;
    width: 25%;
}
User avatar
Moderator

GK User
Mon Aug 10, 2015 10:36 am
That's it.... Thank you!
User avatar
Gold Boarder

teitbite
Thu Aug 13, 2015 2:43 pm
Hi

No problem, glad I could help :)
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.