Keyword

K2 width collumns.

  • Piotr Musiaka
  • Piotr Musiaka's Avatar Topic Author
  • Offline
  • New Member
More
11 years 2 months ago #116050 by Piotr Musiaka
K2 width collumns. was created by Piotr Musiaka
Hi, i have quesion about width of columns in k2
I want to 3 columns have like 33.333%
and not 33.3%
How can i change it?
Ty for answares:)
Sorry for my language :)

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 2 months ago #116051 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: K2 width collumns.
Hello Piotr,

You need to edit category.php. Each group of items has it;s own loop and columns so you need to edit each instance.

More on overriding can be found here: getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Piotr Musiaka
  • Piotr Musiaka's Avatar Topic Author
  • Offline
  • New Member
More
11 years 2 months ago #116052 by Piotr Musiaka
Replied by Piotr Musiaka on topic Re: K2 width collumns.
Yea i understood k2 overriting good.
i know that in category.php is that line.
<div class="itemContainer<?php echo $lastContainer; ?>"<?php echo (count($this->leading)==1) ? '' : ' style="width:'.number_format(100/$this->params->get('num_leading_columns'), 1).'%;"'; ?>>
this and other "THE SAME" functions ?:) this is my main problem... how to make more precize % width.
problem still egsist.

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

  • Piotr Musiaka
  • Piotr Musiaka's Avatar Topic Author
  • Offline
  • New Member
More
11 years 2 months ago #116053 by Piotr Musiaka
Replied by Piotr Musiaka on topic Re: K2 width collumns.
ok i did it :)

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


Powered by Kunena Forum