- Posts: 567
COMMUNITY FORUM
'One css per k2 template' plugin
- Jiliko.net
-
Topic Author
- Offline
- Platinum Member
It's available here :
www.jiliko.net/extensions/css4k2
VERSION 1.2.5
- K2 templates can now be used in the K2 'templates' directory or in the 'html/com_k2/templates' Joomla! template directory. The plugin searches the K2 template in both of them. Your K2 template name has to be unique.
- The plugin is now compatible with the 'Admin Templates' featured extension available here : www.jiliko.net/extensions/admin-templates.
VERSION 1.2.4 (No one has seen it, and you ?)
- You can now use a custom css for the K2 default template
VERSION 1.2.3 (2010-07-31)
- New 'Allow multi css' option that enables each K2 category template css to be loaded on multi-categories layouts.
- English & french translations added
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 themeOlivier
Please Log in or Create an account to join the conversation.
- Simon Wells
-
- Offline
- Platinum Member
- Posts: 955
Please Log in or Create an account to join the conversation.
- GreenDome
-
- Offline
- Premium Member
- Posts: 93
Notice: Undefined property: plgK2OneCssPerK2Template::$pluginName in /var/www/mysite/administrator/components/com_k2/lib/k2plugin.php on line 26
Any ideas why?
Thanks
GD
Please Log in or Create an account to join the conversation.
- Jiliko.net
-
Topic Author
- Offline
- Platinum Member
- Posts: 567
Does the bug affect all your categories using the plugin ?
Do you have a specific configuration ?
Olivier
GreenDome said:I have successfully installed the plugin but when edit a category that uses this plugin i get an error message:
Notice: Undefined property: plgK2OneCssPerK2Template::$pluginName in /var/www/mysite/administrator/components/com_k2/lib/k2plugin.php on line 26
Any ideas why?
Thanks
GD
Please Log in or Create an account to join the conversation.
- GreenDome
-
- Offline
- Premium Member
- Posts: 93
All my categories are using this plugin but if i change the template to --use default-- i still get the same error message.
In terms of configuration, no specific settings, some categories are using 'Inherit parameter options from category' and some aren't.
However, the plugin works fine in the front-end just curious why this error message is showing in the back-end only.
Many Thanks
GD
Olivier Nolbert said:I check that today
Does the bug affect all your categories using the plugin ?
Do you have a specific configuration ?
Olivier
GreenDome said:I have successfully installed the plugin but when edit a category that uses this plugin i get an error message: Notice: Undefined property: plgK2OneCssPerK2Template::$pluginName in /var/www/mysite/administrator/components/com_k2/lib/k2plugin.php on line 26
Any ideas why?
Thanks
GD
Please Log in or Create an account to join the conversation.
- GreenDome
-
- Offline
- Premium Member
- Posts: 93
Slight different question but related to this plugin, hope you can help:
Currently K2 is using the template_css.css for h1, h2, h3, h4, h5 tags but how do i override these tags for one css per k2 template files?
I added the new css stuff to mytmpl_style.css for example but the override didn't work. So K2 is still picking up the css values from template_css.css file.
Thank you in advance.
GD
Please Log in or Create an account to join the conversation.
- Jiliko.net
-
Topic Author
- Offline
- Platinum Member
- Posts: 567
May be the k2 category css file is not loaded or there's a mismatch in it.
Olivier
GreenDome said:Hi Olivier,
Slight different question but related to this plugin, hope you can help:
Currently K2 is using the template_css.css for h1, h2, h3, h4, h5 tags but how do i override these tags for one css per k2 template files?
I added the new css stuff to mytmpl_style.css for example but the override didn't work. So K2 is still picking up the css values from template_css.css file.
Thank you in advance.
GD
Please Log in or Create an account to join the conversation.
- Simon Wells
-
- Offline
- Platinum Member
- Posts: 955
I have seen this before with some templates.
Sorry, I did find a fix but thought it was special to me due to the large number of K2 and Templates that were linked, but I cant remember how I solved this, but it is possible.
It should be possible to take css from your joomla template and get k2 template to overide it.
Do you have any overide statements in your css?
Simon
Olivier Nolbert said:Can you paste your website link ?
May be the k2 category css file is not loaded or there's a mismatch in it.
Olivier
GreenDome said:Hi Olivier, Slight different question but related to this plugin, hope you can help:
Currently K2 is using the template_css.css for h1, h2, h3, h4, h5 tags but how do i override these tags for one css per k2 template files?
I added the new css stuff to mytmpl_style.css for example but the override didn't work. So K2 is still picking up the css values from template_css.css file.
Thank you in advance.
GD
Please Log in or Create an account to join the conversation.
- Jiliko.net
-
Topic Author
- Offline
- Platinum Member
- Posts: 567
I've updated the original post with v1.2.1 which should correct the problem.
Olivier
GreenDome said:I have successfully installed the plugin but when edit a category that uses this plugin i get an error message:
Notice: Undefined property: plgK2OneCssPerK2Template::$pluginName in /var/www/mysite/administrator/components/com_k2/lib/k2plugin.php on line 26
Any ideas why?
Thanks
GD
Please Log in or Create an account to join the conversation.
- GreenDome
-
- Offline
- Premium Member
- Posts: 93
Thank for the updated version, i have installed but it hasn't made any difference or maybe its me :(
The site is currently on a test server but i have attached a screen shot. I am trying to change the links on the 'more...' section as they are currently too big and spaced out. Looking at firebug its uses the H3 from template_css.css file. However, this category uses its own cs_style.css file which seems to be working fine.
When i add the H3 setting to cs_style.css file, it dont override the template_css.css file :(
Many Thanks
GD
Please Log in or Create an account to join the conversation.
- Jiliko.net
-
Topic Author
- Offline
- Platinum Member
- Posts: 567
Can you check that your css file is loaded in the head of the Joomlapage.
If it is, what is the css code you've put in this css file to change the H3 ?
...
The 1.2.1 update only concerns the back office notice correction.
Olivier
2010/3/12 K2 Community
GreenDome replied to your discussion "'One css per k2 template' plugin" on K2 Community
GreenDome said:Olivier, Thank for the updated version, i have installed but it hasn't made any difference or maybe its me :(
The site is currently on a test server but i have attached a screen shot. I am trying to change the links on the 'more...' section as they are currently too big and spaced out. Looking at firebug its uses the H3 from template_css.css file. However, this category uses its own cs_style.css file which seems to be working fine.
When i add the H3 setting to cs_style.css file, it dont override the template_css.css file :(
Many Thanks
GD
Please Log in or Create an account to join the conversation.
- GreenDome
-
- Offline
- Premium Member
- Posts: 93
In the head of the Joomlapage i can see:
I got the above code by going to: View --> Page Source in Firefox - hope thats what you meant.
The css code i added in cs_style file was: h3 {font-size: 110%}
Thank you
GD
Olivier Nolbert said:GreenDome,
Can you check that your css file is loaded in the head of the Joomlapage.
If it is, what is the css code you've put in this css file to change the H3 ?
...
The 1.2.1 update only concerns the back office notice correction.
Olivier
2010/3/12 K2 Community
GreenDome replied to your discussion "'One css per k2 template' plugin" on K2 Community
GreenDome said:Olivier, Thank for the updated version, i have installed but it hasn't made any difference or maybe its me :(
The site is currently on a test server but i have attached a screen shot. I am trying to change the links on the 'more...' section as they are currently too big and spaced out. Looking at firebug its uses the H3 from template_css.css file. However, this category uses its own cs_style.css file which seems to be working fine.
When i add the H3 setting to cs_style.css file, it dont override the template_css.css file :(
Many Thanks
GD
Please Log in or Create an account to join the conversation.
- Jiliko.net
-
Topic Author
- Offline
- Platinum Member
- Posts: 567
But no text or screenshot of your page head.
You should have in the a line like the one in the txt file and placed AFTER the k2.css and the joomla template css
Olivier
GreenDome said:Olivier,
In the head of the Joomlapage i can see:
I got the above code by going to: View --> Page Source in Firefox - hope thats what you meant.
The css code i added in cs_style file was: h3 {font-size: 110%}
Thank you
GD
Olivier Nolbert said:GreenDome, Can you check that your css file is loaded in the head of the Joomlapage.
If it is, what is the css code you've put in this css file to change the H3 ?
...
The 1.2.1 update only concerns the back office notice correction.
Olivier
2010/3/12 K2 Community
GreenDome replied to your discussion "'One css per k2 template' plugin" on K2 Community
GreenDome said:Olivier, Thank for the updated version, i have installed but it hasn't made any difference or maybe its me :( The site is currently on a test server but i have attached a screen shot. I am trying to change the links on the 'more...' section as they are currently too big and spaced out. Looking at firebug its uses the H3 from template_css.css file. However, this category uses its own cs_style.css file which seems to be working fine.
When i add the H3 setting to cs_style.css file, it dont override the template_css.css file :(
Many Thanks
GD
Please Log in or Create an account to join the conversation.
- GreenDome
-
- Offline
- Premium Member
- Posts: 93
Sorry about that i did paste the coding but it got scripted out. I have now added it to the attached file.
I do have the line in the head of the Joomlapage but its appears before the joomla template css and there's no k2.css. This maybe because none of my categories are using the default k2 template settings and in the one css per k2 template plugin, the 'keep k2 css' option is set to No.
Thank you,
GD
Olivier Nolbert said:Sorry GreedDome,
But no text or screenshot of your page head.
You should have in the a line like the one in the txt file and placed AFTER the k2.css and the joomla template css
Olivier
GreenDome said:Olivier, In the head of the Joomlapage i can see:
I got the above code by going to: View --> Page Source in Firefox - hope thats what you meant.
The css code i added in cs_style file was: h3 {font-size: 110%}
Thank you
GD
Olivier Nolbert said:GreenDome, Can you check that your css file is loaded in the head of the Joomlapage.
If it is, what is the css code you've put in this css file to change the H3 ?
...
The 1.2.1 update only concerns the back office notice correction.
Olivier
2010/3/12 K2 Community
GreenDome replied to your discussion "'One css per k2 template' plugin" on K2 Community
GreenDome said:Olivier, Thank for the updated version, i have installed but it hasn't made any difference or maybe its me :( The site is currently on a test server but i have attached a screen shot. I am trying to change the links on the 'more...' section as they are currently too big and spaced out. Looking at firebug its uses the H3 from template_css.css file. However, this category uses its own cs_style.css file which seems to be working fine.
When i add the H3 setting to cs_style.css file, it dont override the template_css.css file :(
Many Thanks
GD
Please Log in or Create an account to join the conversation.
- Jiliko.net
-
Topic Author
- Offline
- Platinum Member
- Posts: 567
In your css file, try
div.itemContainer h3 {}
instead of h3 {}
Olivier
Please Log in or Create an account to join the conversation.
- GreenDome
-
- Offline
- Premium Member
- Posts: 93
Excellent that worked!! Is that what I should have done in the beginning?
Thank you very much for your help and fantastic support. This plugin is a great contribution to the K2 community and personally think it should be included as part of the core.
Best Regards,
GD
Olivier Nolbert said:GreenDome,
In your css file, try
div.itemContainer h3 {}
instead of h3 {}
Olivier
Please Log in or Create an account to join the conversation.
- robm
-
- Offline
- Senior Member
- Posts: 74
Please Log in or Create an account to join the conversation.
- robm
-
- Offline
- Senior Member
- Posts: 74
One problem is my Read More buttons are gone now.
When I disable the plugin I got them back.
Also when I choose the default template in my category the read more buttons are back.
Any idea?
Please Log in or Create an account to join the conversation.
- Jiliko.net
-
Topic Author
- Offline
- Platinum Member
- Posts: 567
Maybe some css troubes.
Have you inspected the code of your html page to check the code of the readmore button is here ?
Olivier
Rob Molenaar said:Hi I got this plugin working. very good thanks! One problem is my Read More buttons are gone now.
When I disable the plugin I got them back. Any idea about this?
Please Log in or Create an account to join the conversation.
- robm
-
- Offline
- Senior Member
- Posts: 74
1st Image is the html code of the read more in the category_item.html
2nd Image is the code of the readmore from mytmpl_style.css
One extra detail good to know is that the read more buttons are there in Firefox and not in IE8 when I have the plugin activated and choosen my own template .
Please Log in or Create an account to join the conversation.