Keyword

K2 pagination issue

  • Tarun Das
  • Tarun Das's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 10 months ago - 9 years 10 months ago #129815 by Tarun Das
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.

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.

More
9 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;

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

More
9 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.

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

  • Tarun Das
  • Tarun Das's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 10 months ago #129818 by Tarun Das
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
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 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.

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

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

  • Tarun Das
  • Tarun Das's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 10 months ago #129820 by Tarun Das
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

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
  • Tarun Das's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 10 months ago - 9 years 10 months ago #129821 by Tarun Das
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.
<!-- 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
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 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.

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

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

  • Tarun Das
  • Tarun Das's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 10 months ago #129823 by Tarun Das
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
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 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.

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

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


Powered by Kunena Forum