Keyword

Create K2 items prev and next link in a module

  • moonswolf
  • moonswolf's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 8 months ago #135940 by moonswolf
Hi, i would ask you how can i load the navigation link (Prev and Next article link) into a module.

I can put php code into modules thanks an installed plugin, so what is the code to show these links?

P.s. Jomla and K2 latest version installed and pagination for that category is active and showed at the end of the page.

Thankyou.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 8 months ago #135960 by Krikor Boghossian
Replied by Krikor Boghossian on topic Create K2 items prev and next link in a module
Hello I am not sure this can be done with the K2 Content module.

If you are referring to Joomla!'s pagination (category, NOT item pagination) then this is not a part of K2. K2 uses Joomla!'s native pagination.

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

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

  • moonswolf
  • moonswolf's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 8 months ago #135981 by moonswolf
Replied by moonswolf on topic Create K2 items prev and next link in a module
Hi, thankyou for your reply.

What would i do is to have 2 link of "Next" and "Previous" article, showed when i'm reading an article.

These articles are K2 items, and not Joomla items.

Also, i would put this links into the right (not at the bottom of the article) so i think to insert the code into an html module on the right (i will use a plugin to load php and html code from modules).

If it's still not clear, i will try to explain myself better.

Thankyou.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 8 months ago #136032 by Krikor Boghossian
Replied by Krikor Boghossian on topic Create K2 items prev and next link in a module
Unfortunately this cannot be achieved by pasting code into a module. You will need to either find or build a custom extension.
It is possible to create the module's code with some JavaScript once the DOM loads (clone the existing item navigation).

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

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

  • moonswolf
  • moonswolf's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 7 months ago #140752 by moonswolf
Replied by moonswolf on topic Create K2 items prev and next link in a module
Hi, thankyou for your answer and sorry for my late reply.

So, could you suggest me what JavaScript code should i insert into my module? How can i clone the existing item navigation?

Thankyou so much as always.

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

  • Mohamed Abdelaziz
  • Mohamed Abdelaziz's Avatar
  • Offline
  • Platinum Member
  • Joomla Developer
More
9 years 7 months ago #140754 by Mohamed Abdelaziz
Replied by Mohamed Abdelaziz on topic Create K2 items prev and next link in a module

Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store

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

  • moonswolf
  • moonswolf's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 7 months ago #140755 by moonswolf
Replied by moonswolf on topic Create K2 items prev and next link in a module
Hi, thankyou for your help.

What this solution does, is to put a module with k2 content and k2 content pagination.

What should i do is have a module showed on my k2 items, and that show only the prev and next link (for the same cagory).

So, when i will click on the prev or next link of this module, it will open directly the prev or next item.

So it's the same think of the k2 pagination that is at the end of the k2 item page, but i would this on the right column (so i think it's better to put it into a module).

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

  • moonswolf
  • moonswolf's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 6 months ago #141560 by moonswolf
Replied by moonswolf on topic Create K2 items prev and next link in a module
Hi, have you any update to put the pagination into a module?

Or, if you can suggest me a solution to show a K2 item and have it's pagination showed inside the right bar?

Thankyou.

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


Powered by Kunena Forum