Keyword

[Solved] Showing articles in grid

More
9 years 9 months ago - 9 years 9 months ago #135491 by dare
[Solved] Showing articles in grid was created by dare
Hi.
I want to show articles in category in pinterest-like way.
I have managed to get one grid javascript plugin to work, but there is an issue : if I set number of articles to show with pagination plugin is not activated every time.
To explain:
Let say there is 4 pages of pagination, pages 1 and 4 work without issues, displaying articles in nice grid, while pages 2 and 3 are not.
So far I have managed to find reason, which is that grid plugin is simply not activated in inner pages, same happens if user clicks on page 1 after any page, no grid.
After refresh plugin is activated without issues.
So, I think I will need to connect pagination to make plugin initialized on every click, just have no idea where to look.
Or is there a better way?

Hope I have explained what I need, any suggestions are welcome.
Thank you in advance.
Last edit: 9 years 9 months ago by dare.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 9 months ago #135495 by Krikor Boghossian
Replied by Krikor Boghossian on topic showing articles in grid
K2 uses Joomla!'s pagination. If your template is using AJAX pagination then you need to deactivate the AJAX part or fire the script again on every AJAX call.

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

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

More
9 years 9 months ago #135549 by dare
Replied by dare on topic showing articles in grid
I have done exactly that, fired plugin on every click on pagination.
Thank you.
Happy Holidays!

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 9 months ago #135572 by Krikor Boghossian
Replied by Krikor Boghossian on topic showing articles in grid
You 're welcome dare. Happy New Year.

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