Keyword

K2, pagebreaks and caching

  • Toby Mathews
  • Toby Mathews's Avatar Topic Author
  • Offline
  • New Member
More
14 years 6 months ago #73691 by Toby Mathews
K2, pagebreaks and caching was created by Toby Mathews
Hi there,

We have an implementation of Joomla that's using K2 items. We have found that if we turn on Joomla's caching feature, pagination (using Joomla's pagebreaks) goes wrong - that is, each page just displays content from page 1. I'd hazard a guess that this is because the methods in plugins/content/pagebreak.php aren't being invoked correctly.

Does this sound like a K2 bug, or should this work ok?

Thanks,

Toby

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

  • Toby Mathews
  • Toby Mathews's Avatar Topic Author
  • Offline
  • New Member
More
14 years 6 months ago #73692 by Toby Mathews
Replied by Toby Mathews on topic K2, pagebreaks and caching
PS On further inspection, each page displays the content of the first page viewed, so not necessarily page 1.

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

  • Toby Mathews
  • Toby Mathews's Avatar Topic Author
  • Offline
  • New Member
More
14 years 6 months ago #73693 by Toby Mathews
Replied by Toby Mathews on topic K2, pagebreaks and caching
Ok, I may have fixed this, by adding $limitstart to the variables passed to the call method of the JCacheCallback instance.

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

  • Toby Mathews
  • Toby Mathews's Avatar Topic Author
  • Offline
  • New Member
More
14 years 6 months ago #73694 by Toby Mathews
Replied by Toby Mathews on topic K2, pagebreaks and caching
Should have said, this was in the display method of K2ViewItem.

Toby Mathews said:Ok, I may have fixed this, by adding $limitstart to the variables passed to the call method of the JCacheCallback instance.

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

More
14 years 6 months ago #73695 by Lefteris
Replied by Lefteris on topic K2, pagebreaks and caching
Hi. I m glad you found a solution to this but note that K2 is not supposed to support the page break functionality. That's also the reason you cant see this button on editor when using K2.

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

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

  • Toby Mathews
  • Toby Mathews's Avatar Topic Author
  • Offline
  • New Member
More
14 years 6 months ago #73696 by Toby Mathews
Replied by Toby Mathews on topic K2, pagebreaks and caching
Ah ok, I did not know that - thanks for the clarification.

Lefteris Kavadas said:Hi. I m glad you found a solution to this but note that K2 is not supposed to support the page break functionality. That's also the reason you cant see this button on editor when using K2.

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


Powered by Kunena Forum