Keyword

K2 subtemplate not applying correct classes

  • Andrea
  • Andrea's Avatar Topic Author
  • Offline
  • New Member
More
1 week 6 hours ago #173930 by Andrea
Andrea replied the topic: K2 subtemplate not applying correct classes
Hi Fotis,

if i change the template from the menu item options (which i wasn't even able to before, i don't know why, but the dropdown selector was gray and unclickable), the changes get lost once saved (it turns back to "default").
Any suggestions?
TY

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
1 week 2 hours ago #173931 by Fotis
Fotis replied the topic: K2 subtemplate not applying correct classes
You can override the sub-template in menu items ONLY if you link to multiple categories. For single categories, you can't change it as this can be done in the actual K2 category settings.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

  • Andrea
  • Andrea's Avatar Topic Author
  • Offline
  • New Member
More
6 days 15 hours ago #173932 by Andrea
Andrea replied the topic: K2 subtemplate not applying correct classes
Hi Fotis,

not sure i've got that: what should the menu item link to, then?

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
6 days 14 hours ago #173933 by Fotis
Fotis replied the topic: K2 subtemplate not applying correct classes
A menu item for "K2 Categories" can link to one or more categories. When you select a single category in the 2nd tab of the menu item form, you'll notice that most options that follow are greyed out. This is normal. The point is that when you select a single category, you want this category's display option to take effect.

However, if you need to create a menu item pointing to multiple K2 categories, e.g. an "All News" menu item retrieving K2 content from multiple categories, when you select these multiple categories, the options that follow are enabled. This is to allow you to override different category settings in regards to the grid of items displayed. E.g. one category may show just 4 "primary" items in 1 column. Another one 8 "leading" items in 2 columns. And so on. When the additonal grid options are enabled in the menu item, you can create a new grid and basically "normalize" potentially different grid settings per category.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

  • Andrea
  • Andrea's Avatar Topic Author
  • Offline
  • New Member
More
6 days 13 hours ago #173934 by Andrea
Andrea replied the topic: K2 subtemplate not applying correct classes
Well the fact is that i only need to display one category, but for some reason the items belonging to that category aren't showing the readmore. This is getting more and more confusing... It really has no point for me to link two or more different categories, i just need a test page to work on my new k2 subtemplate.
Even the fact that the readmore isn't showing is strange, as the "default" template clearly shows that it's set to be visible.

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
6 days 8 hours ago #173935 by Fotis
Fotis replied the topic: K2 subtemplate not applying correct classes
You need to check your overrides thoroughly. You're missing some if/else check.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum