how to creat K2 category separate template

Professional Business Joomla template for corporate and business websites suitable for showing stock quotes, up to date news, portfolio management resources or international market data.
GK User
Wed Aug 22, 2012 10:23 am
Hello.
Can anybody help me with K2 category template creation.
For example now at my site there are two category: "Новости" and "Фотогалерея".
I want to make separate css styles for the first category "Новости".
I tried as was suggested at different forums.
But nothing don`t work.
What I made:
1) I installed plugin CSS4K2.
2) I go to the folder medic.com/www/components/com_k2 / templates - copy it and rename it to my_styles.

3) Next I go to the folder medic.com/www/templates/finance_business/hmtl/com_k2 / templates / the default folder is already here, I insert here new folder my_styles.
4) Inside this folder (my_styles) I create my own style sheet my_styles.css.
5) In the category parametres - there is available to choose template, and I choose my new template my_styles.

It didn`t work.
I`m trying to do this several days, but can`t.
What I`m doing wrong?

Should I rewrite all files in templates/finance_business/hmtl/com_k2 / templates (I mean to rewrite generic.php, profile.php, register.php, user.php by the files from /components/com_k2 / te mplates ) ?

And I tried to do it by adding Page Class Suffix, but I don`t know it , can anybody help me.

I make a video what I do all my steps. If it not difficult for you to watch this video.
Here is th link: http://narod.ru/disk/59767509001.163e7e ... 1.avi.html
User avatar
Senior Boarder

teitbite
Wed Aug 22, 2012 1:15 pm
Hi

I do not know this plugin. Anyway when I need a k2 style override I simply duplicate a template located in /HTML/com_k2/templates/default and giving it a new name which will display as a new template. That right inside files you are interested of changing I'm adding CSS and make php/HTML changes.
User avatar
Moderator

GK User
Tue Sep 04, 2012 6:24 pm
I have the same question.. I need to make some custom K2 field layout overrides - I go to this folder:
Code: Select all
templates/gk_musicity/html/com_k2/templates/default/


copy all files (item.php etc) to a new folder and make changes:
Code: Select all
templates/gk_musicity/html/com_k2/templates/myk2layout/


and then what? where do I specify that this new "myk2layout" layout must be used?
User avatar
Fresh Boarder

teitbite
Wed Sep 05, 2012 10:32 am
Hi

Templates for K2 needs to be choosen in K2 category settings. Basicaly You edit category information and select new template so this category and it's items will be using files from newly created folder. But please remember that this cattegory cannot inherit setting from another category, because it will not work and template used for the category above will be taken.
User avatar
Moderator


cron