Category layout

GK User
Thu Jun 27, 2013 1:43 am
I just wanted to ask about editing the K2 category layout in the template.

Image

As in the picture, I'd like to change it so when people click on a category, they will see the items in that category but with the images and text beside each other, not image on top of text like it is right now. I might play with it a bit and change the layout even more later, but just want to get the text up there for now.

Is that something edited from the category.php file at template/html/com_k2 or would that change the page where all the categories are on display. I just want to change how it looks when people are viewing one category.

Thanks!
User avatar
Senior Boarder

GK User
Sat Jun 29, 2013 7:21 am
Hi,
so we have to make small changes in CSS for this or for all category view? Choose.

So you need something like this, yes?
User avatar
Platinum Boarder

GK User
Sat Jun 29, 2013 8:50 am
Use this css code:
Code: Select all
.catItemImage { width:220px; float:left;padding-top:12px; margin-top:10px; }
.catItemBody {float:left; width: 350px }
.catItemIntroText, .catItemBody {padding-top:0px;}


You will get this view
k2-nice-view.png


How to add css: https://www.gavick.com/documentation/jo ... -template/
User avatar
Platinum Boarder

GK User
Sat Jun 29, 2013 8:55 am
p.s.
This is general CSS setting, so if you need this appearance only on one (selected) category
you have to create a customized template for K2 like we did, here: templates\gk_game_magazine\html\com_k2\templates\default
User avatar
Platinum Boarder

GK User
Sat Jun 29, 2013 7:24 pm
Would it be possible to get the title there as well...and change the title text to what is in this picture. Pretty much the same as this layout from the NSP module:

Image

But yes for all the categories. So when someone clicks on a category they would see something like this:
http://oi43.tinypic.com/nwn81e.jpg

Just something simple so they can see a quick easy to navigate list. I like the idea of having just the title and the author beside the image on all the categories.

Sorry for the change but it's been a few days since I posted the topic and I refined my desire a little bit since then.

Thanks for the help.
User avatar
Senior Boarder


cron