- Posts: 38
COMMUNITY FORUM
K2 pagination issue
- Tarun Das
-
Topic Author
- Offline
- Junior Member
Less
More
10 years 10 months ago - 10 years 10 months ago #129815
by Tarun Das
Joomla! 3.4.3, K2 v2.6.9 (Eagerly waiting for v3)
Website: Yankee Russia
K2 pagination issue was created by Tarun Das
Hi,
In my Joomla! articles pagination shows nice and decent as in the image below
Whereas in my K2 categories pagination shows quite differently ...please look at the image below
How to solve this problem?
Regards
Tarun.
In my Joomla! articles pagination shows nice and decent as in the image below
Whereas in my K2 categories pagination shows quite differently ...please look at the image below
How to solve this problem?
Regards
Tarun.
Joomla! 3.4.3, K2 v2.6.9 (Eagerly waiting for v3)
Website: Yankee Russia
Please Log in or Create an account to join the conversation.
- P
-
- Offline
- New Member
Less
More
- Posts: 12
10 years 10 months ago #129816
by P
Replied by P on topic Re: K2 pagination issue
Hi
Exactly the same problem.
How can we space out Start Prev Numbers Next End;
Exactly the same problem.
How can we space out Start Prev Numbers Next End;
Please Log in or Create an account to join the conversation.
- P
-
- Offline
- New Member
Less
More
- Posts: 12
10 years 10 months ago #129817
by P
Replied by P on topic Re: K2 pagination issue
I found the solution about spaces in topic below:
getk2.org/community/English-K2-Community/12182-Pagination
It works.
I don't know about changing style of pagination.
getk2.org/community/English-K2-Community/12182-Pagination
It works.
I don't know about changing style of pagination.
Please Log in or Create an account to join the conversation.
- Tarun Das
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 38
10 years 10 months ago #129818
by Tarun Das
Joomla! 3.4.3, K2 v2.6.9 (Eagerly waiting for v3)
Website: Yankee Russia
Replied by Tarun Das on topic Re: K2 pagination issue
Well, I would like a single pagination style throughout my website. So here is the precise question, how to force K2 to follow default Joomla! template pagination style?
Joomla! 3.4.3, K2 v2.6.9 (Eagerly waiting for v3)
Website: Yankee Russia
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 10 months ago #129819
by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: K2 pagination issue
This requires some CSS knowledge.
Solution a) Open your template's stylesheet and locate the pagination's styles.
The should look like .pagination ul { ...
Copy these styles and paste them once more. Now change .pagination to .k2Pagination in all these new instances.
Solution b) Open all overrides of the K2 component (category, user, tag, generic) and change k2Pagination to the class your template is using.
Solution a) Open your template's stylesheet and locate the pagination's styles.
The should look like .pagination ul { ...
Copy these styles and paste them once more. Now change .pagination to .k2Pagination in all these new instances.
Solution b) Open all overrides of the K2 component (category, user, tag, generic) and change k2Pagination to the class your template is using.
Please Log in or Create an account to join the conversation.
- Tarun Das
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 38
10 years 10 months ago #129820
by Tarun Das
Joomla! 3.4.3, K2 v2.6.9 (Eagerly waiting for v3)
Website: Yankee Russia
Replied by Tarun Das on topic Re: K2 pagination issue
Thank you Krikor.
You are the BEST and to the point. I would try both of them and revert back to you. Lately I have developed a keen interests for overrides though :huh: Of course this is inspired by your wonderful posts :woohoo:
Regards
Tarun
You are the BEST and to the point. I would try both of them and revert back to you. Lately I have developed a keen interests for overrides though :huh: Of course this is inspired by your wonderful posts :woohoo:
Regards
Tarun
Joomla! 3.4.3, K2 v2.6.9 (Eagerly waiting for v3)
Website: Yankee Russia
Please Log in or Create an account to join the conversation.
- Tarun Das
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 38
10 years 10 months ago - 10 years 10 months ago #129821
by Tarun Das
Joomla! 3.4.3, K2 v2.6.9 (Eagerly waiting for v3)
Website: Yankee Russia
Replied by Tarun Das on topic Re: K2 pagination issue
So I did :) ...
Tried the Solution b ( Sounds like PLAN B :lol: ) first
Found the pagination class of my default template.
I had a K2 template override in \templates\MY_TEMPLATE\html\com_k2\species\category.php
I made the following changes in category.php file.
Now my pagination looks like this :P
Actually in the template it was as <ul class="uk-pagination"> not a div class :oops:
Tried the Solution b ( Sounds like PLAN B :lol: ) first
Found the pagination class of my default template.
I had a K2 template override in \templates\MY_TEMPLATE\html\com_k2\species\category.php
I made the following changes in category.php file.
<!-- Pagination -->
<?php if($this->pagination->getPagesLinks()): ?>
<div class="uk-pagination">
<?php if($this->params->get('catPagination')) echo $this->pagination->getPagesLinks(); ?>
<div class="clr"></div>
<?php if($this->params->get('catPaginationResults')) echo $this->pagination->getPagesCounter(); ?>
</div>
<?php endif; ?>
<?php endif; ?>
Now my pagination looks like this :P
Actually in the template it was as <ul class="uk-pagination"> not a div class :oops:
Joomla! 3.4.3, K2 v2.6.9 (Eagerly waiting for v3)
Website: Yankee Russia
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 10 months ago #129822
by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: K2 pagination issue
Tarun thank you very much for your kind words.
I really appreciate it.
It is not a plan b, it is more of an either/ or situtation.
I will need a live link to com_content and to k2 as well so I can pinpoint the exact issue.
I really appreciate it.
It is not a plan b, it is more of an either/ or situtation.
I will need a live link to com_content and to k2 as well so I can pinpoint the exact issue.
Please Log in or Create an account to join the conversation.
- Tarun Das
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 38
10 years 10 months ago #129823
by Tarun Das
Joomla! 3.4.3, K2 v2.6.9 (Eagerly waiting for v3)
Website: Yankee Russia
Replied by Tarun Das on topic Re: K2 pagination issue
Thank you again ... I can't see a PM here to send you link and password
Joomla! 3.4.3, K2 v2.6.9 (Eagerly waiting for v3)
Website: Yankee Russia
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 10 months ago #129824
by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: K2 pagination issue
There is no PM.
You can paste the link here. No need to paste credentials.
You can paste the link here. No need to paste credentials.
Please Log in or Create an account to join the conversation.
- Tarun Das
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 38
10 years 10 months ago - 10 years 10 months ago #129825
by Tarun Das
Joomla! 3.4.3, K2 v2.6.9 (Eagerly waiting for v3)
Website: Yankee Russia
Replied by Tarun Das on topic Re: K2 pagination issue
I am sorry. I really don't have any idea how to do that :(
By the way this is the site themeindia.org
If you would become a member I can assign you access ... I know how to do that :lol:
I invite you to become a member anyway, it's a travel guide for India ... if you have plans to travel India anytime in the future :) Initiated by a group of conservationists. A not-for-ptofit site. We are making our own website, no professionals assigned.
By the way this is the site themeindia.org
If you would become a member I can assign you access ... I know how to do that :lol:
I invite you to become a member anyway, it's a travel guide for India ... if you have plans to travel India anytime in the future :) Initiated by a group of conservationists. A not-for-ptofit site. We are making our own website, no professionals assigned.
Joomla! 3.4.3, K2 v2.6.9 (Eagerly waiting for v3)
Website: Yankee Russia
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 10 months ago #129826
by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: K2 pagination issue
For some reason the template is using a different override for the pagination.
You could merge your styling. eg. The values for uk-pagination should be transfered to .k2Pagination ul but if I we were you, I would ask the template developer how to use the same pagination throughout the site.
Finally, it's a great initiative, I wish you all the best in your cause :)
You could merge your styling. eg. The values for uk-pagination should be transfered to .k2Pagination ul but if I we were you, I would ask the template developer how to use the same pagination throughout the site.
Finally, it's a great initiative, I wish you all the best in your cause :)
Please Log in or Create an account to join the conversation.