- Posts: 20
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- Custom K2 template not used when additional categories added
Custom K2 template not used when additional categories added
- Richard Marks
-
Topic Author
- Offline
- Junior Member
Please Log in or Create an account to join the conversation.
- Richard Marks
-
Topic Author
- Offline
- Junior Member
- Posts: 20
I use the CSS4K2 plugin, or at least it's installed. When the menu link to a K2 category isn't just a single category the logic in the plugin can't determine how to load a customized stylesheet, which is computed from the category. Even if all of the categories use the same custom style, the plugin can't process multiple categories.
Please Log in or Create an account to join the conversation.
- Mihail Semerdzhiev
-
- Offline
- New Member
- Posts: 12
Please Log in or Create an account to join the conversation.
- Jiliko.net
-
- Offline
- Platinum Member
- Posts: 567
I'll check that tomorrow but i confirm that the plugin can just load one css at a time...
Olivier (css4k2 plugin author)
Please Log in or Create an account to join the conversation.
- Richard Marks
-
Topic Author
- Offline
- Junior Member
- Posts: 20
If my theory is correct, one solution would be to determine the custom template for the first category of the group and load that. I'm very curious what you'll find and hope you can come up with a good solution.
Thanks for acknowledging the issue and responding.
Olivier Nolbert said:Hi everyone,
I'll check that tomorrow but i confirm that the plugin can just load one css at a time...
Olivier (css4k2 plugin author)
Please Log in or Create an account to join the conversation.
- Simon Wells
-
- Offline
- Platinum Member
- Posts: 955
Do you have your custom k2 css file placed within the folder of your k2 template, within your Joomla template?
Is the css file named correctly.
What configuration do you have set for the css4k2
Do you have the default k2 css enabled/disabled in the k2 parameters?
Try disabling the css4k2 plugin to see if your custom css is then loaded.
Lots of questions i know.
Simon
K2 Support
Please Log in or Create an account to join the conversation.
- Richard Marks
-
Topic Author
- Offline
- Junior Member
- Posts: 20
I'm not sure what you mean by "what css4k2 configuration do I have".
If I disable the css4k2 plugin why would the template ever be referenced? That is the only way I'm aware of custom k2 templates get pulled in.
Another user also claims to be having the same issue, but I don't know his specifics.
Simon Wells (K2 Support) said:Hi Richard, Do you have your custom k2 css file placed within the folder of your k2 template, within your Joomla template? Is the css file named correctly. What configuration do you have set for the css4k2
Do you have the default k2 css enabled/disabled in the k2 parameters?
Try disabling the css4k2 plugin to see if your custom css is then loaded.
Lots of questions i know.
Simon
K2 Support
Please Log in or Create an account to join the conversation.
- Jiliko.net
-
- Offline
- Platinum Member
- Posts: 567
I'll see if i can plan that this week but not sure...
Olivier
Please Log in or Create an account to join the conversation.
- Richard Marks
-
Topic Author
- Offline
- Junior Member
- Posts: 20
I see your rate of posting has resumed, and your busy helping support many people again. I thank you, and am grateful, as I'm sure are all here are for your efforts.
But if a newbie like me can find such an issue that has the experts stumped, what does it say about K2? I've been patiently waiting for about a month to dialog about this problem, or at least get a little feedback to help me begin to understand it. Being a newbie I recognize I might be doing something wrong, but how am I to learn otherwise? If I'm struggling don't you think others might be also?
Hear me carefully: I'm NOT saying K2 is poorly crafted or not a quality component. It provides many features sorely lacking in Joomla. But it is a complex addition, and I'm now coming to realize that Joomla is still a far cry away from a truly well integrated plug & play system. There is so much advertising and hype. This is just a comment to bring a little reality to the surface.
I guess I'm just bemoaning what is still lacking, as it reflects the significant time & effort required to create a site that has all of the UI elements & styles appear completely unified across every add in & component installed. As for the functional elements, that appears to be further along in its evolution, as represented by the various component authors providing support for Jomsocial, CB, Kuena and Agora etc.
So I guess I am slowly coming to terms with this, and realize that with each new component I decide to adopt I will probably have a non-trivial amount of integration work to do in order to be satisfied with its seamless appearance and integration with my existing site components.
Simon Wells (K2 Support) said:Hi Richard, Do you have your custom k2 css file placed within the folder of your k2 template, within your Joomla template?
Is the css file named correctly.
What configuration do you have set for the css4k2
Do you have the default k2 css enabled/disabled in the k2 parameters?
Try disabling the css4k2 plugin to see if your custom css is then loaded.
Lots of questions i know.
Simon
K2 Support
Please Log in or Create an account to join the conversation.
- Jiliko.net
-
- Offline
- Platinum Member
- Posts: 567
I've updated the plugin to load all the css files if there are many categories.
Can find it here : www.jiliko.net/en/component/k2/item/8/8
Olivier
Please Log in or Create an account to join the conversation.
- Richard Marks
-
Topic Author
- Offline
- Junior Member
- Posts: 20
Olivier Nolbert said:Hi Richard,
I've updated the plugin to load all the css files if there are many categories.
Can find it here : www.jiliko.net/en/component/k2/item/8/8
Olivier
Please Log in or Create an account to join the conversation.
- Jeff Whitmore
-
- Offline
- Junior Member
- Posts: 24
If my menu link just goes to one K2 category then my custom CSS works as expected, but if the menu link goes to two or more K2 categories, then it uses the default CSS.
Please Log in or Create an account to join the conversation.
- Jiliko.net
-
- Offline
- Platinum Member
- Posts: 567
To load the custom css files when you 're in a multi-category view, you have to set the 'Allow multi css' plugin parameter to yes.
You can check that in the plugin parameter documentation here.
Olivier
Aaron Wilson said:I'm still experiencing this issue. Using the latest version of the plugin from www.jiliko.net/extensions/downloads/free/8-css4k2
If my menu link just goes to one K2 category then my custom CSS works as expected, but if the menu link goes to two or more K2 categories, then it uses the default CSS.
Please Log in or Create an account to join the conversation.
- Jeff Whitmore
-
- Offline
- Junior Member
- Posts: 24
Please Log in or Create an account to join the conversation.
- Casper Voogt
-
- Offline
- Junior Member
- Posts: 22
Please Log in or Create an account to join the conversation.
- Jiliko.net
-
- Offline
- Platinum Member
- Posts: 567
I'm not sure of what you mean...
Options are greyed out in the item menu while you don't have selected at least 2 categories to display.
To use a custom template for a category, you just have to select the template to use for it and create the dedicated css file in the right place :
/templates/YOURJOOMLATEMPLATE/html/com_k2/templates/YOURK2CUSTOMTEMPLATE/yourk2customtemplate_style.css
You can check plugin parameters documentation here :
www.jiliko.net/extensions/documentations/item/20-css4k2-parameters
Olivier
Casper Voogt said:
I don't understand this either. I am unable to display my category using my custom template ... the options are simply greyed out.
Please Log in or Create an account to join the conversation.
- troponin
-
- Offline
- Platinum Member
- Posts: 398
try to set the settings in the K2 Category View in Backend.
Casper Voogt said:
I don't understand this either. I am unable to display my category using my custom template ... the options are simply greyed out.
Please Log in or Create an account to join the conversation.
- Casper Voogt
-
- Offline
- Junior Member
- Posts: 22
Why should we have to select more than one category when creating a category view menu item? That is very confusing. Glad it works though.
Olivier Nolbert said:
Hi Casper,
I'm not sure of what you mean...
Options are greyed out in the item menu while you don't have selected at least 2 categories to display.
To use a custom template for a category, you just have to select the template to use for it and create the dedicated css file in the right place :
/templates/YOURJOOMLATEMPLATE/html/com_k2/templates/YOURK2CUSTOMTEMPLATE/yourk2customtemplate_style.css
You can check plugin parameters documentation here :
www.jiliko.net/extensions/documentations/item/20-css4k2-para...
Olivier Casper Voogt said:
I don't understand this either. I am unable to display my category using my custom template ... the options are simply greyed out.
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- Custom K2 template not used when additional categories added