K2 Community

Join the network of the powerful content component for Joomla!

This plugin allows a specfic css file to be loaded for each k2 category configured with a specific k2 subtemplate.

VERSION : v1.2.2 (2010-04-12)

- Css file path forced with '/' and not depending on webserver os
- Obsolete commented code deleted

If you use IIS, update !

VERSION : v1.2.1 (2010-03-12)

- Adding mandatory K2 plugin property to avoid back-office notice (Thx to GreenDome)

VERSION : v1.2 (2010-2-27)

- New parameter : Force Original Theme -> If set to 'yes', the original theme of the category is loaded even if the category inherits from another one

- New parameter : Force Default Theme -> If set to 'yes ' AND 'Force Original Theme' too, the original theme of the category is loaded even if it's the k2 default theme

See Pdf file...

Olivier
Attachments:

Reply to This

Replies to This Discussion

Ok I've done what you told. I gave k2.css a different name to disable it. But still no readmore button.
Could you please tell me your url link to your readmore button? Because when I type the full url address to my readmore button url(http://127.0.0.1/mywebsite/images/readmore.png) instead of url(..images/readmore.png) it is also working.

Reply to This

Really useful. Thanks :D

Reply to This

I comment out the read more buttons in mytmpl_style.css file and now its working.
I reallt don't know why but who cares... I got it worki......... O no....
It looks like all images are not showing in css.
So also the stars for voting are missing.

Its driving me crazy so I think I have to throw this plugin away. Perhaps I'm doing something wrong..

Rob Molenaar said:
Ok I've done what you told. I gave k2.css a different name to disable it. But still no readmore button.
Could you please tell me your url link to your readmore button? Because when I type the full url address to my readmore button url(http://127.0.0.1/mywebsite/images/readmore.png) instead of url(..images/readmore.png) it is also working.

Reply to This

Hi all,

My last post is incorrect. I do not copy the k2 orginal css file as a custom css template file.

What i do is creating a custom css file and copy the k2 css code i want to override. If you copy the k2.css file in another location, all the urls for background images won't work anymore. Excepted if you also copy the k2 core images directory under your template.

Sorry for those who have followed these bad instructions.

Olivier

Reply to This

Thanks and no problem!

Olivier Nolbert said:
Hi all,

My last post is incorrect. I do not copy the k2 orginal css file as a custom css template file.

What i do is creating a custom css file and copy the k2 css code i want to override. If you copy the k2.css file in another location, all the urls for background images won't work anymore. Excepted if you also copy the k2 core images directory under your template.

Sorry for those who have followed these bad instructions.

Olivier

Reply to This

I cannot seem to get the plug in to work. I install it fine, then enable. I copied the k2.css file to the templates/html/com_k2/myTemplate/ folder. I expected to see the correct path appear when I inspected the element with firebug, but the path points to the k2.css file in the K2 component directory. I tried turning off the "enable default css" from the k2 component parameters screen, but then there is no k2 css at all.

What am I doing wrong?

Reply to This

I struggled with this because the confusing description of this plugin.

What I did is:
1. Copy the file k2.css and paste it in the templates/html/com_k2/myTemplate/
2. Rename the file into myTemplate_style.css
3. Delete everything in this file.
Now if you want to make the Item Title font smaller;
4. As you can see in Firebug the Item Title is "div.catItemHeader h3.catItemTitle"
So add for example:
div.catItemHeader h3.catItemTitle{font-size:12px;}
into you new myTemplate_style.css (original font-size is 24px)
5 Save your file and refresh browser (clear cache?)



mike said:
I cannot seem to get the plug in to work. I install it fine, then enable. I copied the k2.css file to the templates/html/com_k2/myTemplate/ folder. I expected to see the correct path appear when I inspected the element with firebug, but the path points to the k2.css file in the K2 component directory. I tried turning off the "enable default css" from the k2 component parameters screen, but then there is no k2 css at all.

What am I doing wrong?

Reply to This

Thanks - The reason mine did not work is that I did not rename the css file. once I renamed it, no problem, all works as expected.

Rob Molenaar said:
I struggled with this because the confusing description of this plugin.

What I did is:
1. Copy the file k2.css and paste it in the templates/html/com_k2/myTemplate/
2. Rename the file into myTemplate_style.css
3. Delete everything in this file.
Now if you want to make the Item Title font smaller;
4. As you can see in Firebug the Item Title is "div.catItemHeader h3.catItemTitle"
So add for example:
div.catItemHeader h3.catItemTitle{font-size:12px;}
into you new myTemplate_style.css (original font-size is 24px)
5 Save your file and refresh browser (clear cache?)



mike said:
I cannot seem to get the plug in to work. I install it fine, then enable. I copied the k2.css file to the templates/html/com_k2/myTemplate/ folder. I expected to see the correct path appear when I inspected the element with firebug, but the path points to the k2.css file in the K2 component directory. I tried turning off the "enable default css" from the k2 component parameters screen, but then there is no k2 css at all.

What am I doing wrong?

Reply to This

Reply to This

RSS

Advertisement

Latest Activity

Plz send a link if site is live
2 hours ago
See the k2 menu choices at the bottom - latest from user or categories select the category and set the number of items and it will work
2 hours ago
FidelGonzales added a discussion
I'm having some issues getting my categories to appear properly. The culprit seems to be the following code: . In default form, there is a huge gap on the top of the category page. After removing a few of these, the issue is partially fixed with cer…
2 hours ago
someone better that i may can tell you, try commenting the div class clr's our and see what happens
2 hours ago
Thanks for the reply. Unfortunately I'm not so experienced with Firebug nor CSS. I attached a new image, where one can see more information. Does this help a bit more?
2 hours ago
Whatever is done will modify the core, but will work. How about putting the category id's in a field like the xtra filelds and teach the core to parse them out. Its changing the way things work - not likely to happen unless a module like followeyes…
2 hours ago
I don't think the concept of the single-category per item content structure is a way of thinking that is advanced and, therefore, a reason to change the content construction strategy and our subsequent way of thinking. It is merely a huge limitation…
2 hours ago
2. if you are trying to remove a video from an item in the backend, click on the video tab scroll to the bottom and check delete currrent and save
2 hours ago
Please post a link if the site is live Use firebug to see what there and what needs to be changed
3 hours ago
Also, to skip the extra field you dont want edit in the override item.php and put something like {pseudocode} phpif this->extrafield->name="fieldyouwantto skip" else let the rest of the existing foreach loop run phpendif endfor something like that s…
3 hours ago
Kibekas added a discussion
There is a problem with excess of free space between 'itemListSubCategories' and 'itemList'. It seems to be derving from div class 'itemlistsubcategories' Please see the image attached. Does anyone know how to solve this problem? Via CSS?Thanks!
3 hours ago
you can get the extra fields like this if it suits your needs $custom = $this->item->extra_fields; and then addressing extra fields for the item like echo $custom[1]->value; depending on the position, 0, 1,2,3,4 etc in the array experiment with this…
3 hours ago
Kibekas, Ninja B, Dene Goodwin and 1 more joined K2 Community
3 hours ago
deton and Daito joined JoomlaWorks's group
For K2 translators
3 hours ago
I can translate to Russian
3 hours ago
I have a case right now where I would love to be able to set several categories for one article. For now, it has been solved with the use of tags, and I suspect this is how we will have to use it in the future. It might just be that we are used to…
3 hours ago
Viktoria (and Simon), Did you ever find out how to put one single extra field (not the whole bunch...) a different place than at the bottom of the article? This means we need to have a way to identify this particular field and add the code for it…
3 hours ago
Valentine added a discussion
Greetings to all . So here is what i cant understand1. i Cant login as an admin tru k2 login in frontend form just resets and i see begining of page2. I cant understand how to remove Related videos Any help will be good thanks in advance
3 hours ago
I can translate to German
5 hours ago
Sorry man, I wish I had more time to re-analize. You'll have to tweak things around. Trial and error man.
6 hours ago

© 2010   Created by JoomlaWorks.

Badges  |  Report an Issue  |  Terms of Service