- Posts: 30
COMMUNITY FORUM
Create K2 items prev and next link in a module
- moonswolf
-
Topic Author
- Offline
- Junior Member
Less
More
10 years 4 months ago #135940
by moonswolf
Create K2 items prev and next link in a module was created 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.
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
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 4 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.
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.
Please Log in or Create an account to join the conversation.
- moonswolf
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 30
10 years 4 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.
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
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
10 years 3 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).
It is possible to create the module's code with some JavaScript once the DOM loads (clone the existing item navigation).
Please Log in or Create an account to join the conversation.
- moonswolf
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 30
10 years 3 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.
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
-
- Offline
- Platinum Member
- Joomla Developer
10 years 3 months ago #140754
by Mohamed Abdelaziz
Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store
Replied by Mohamed Abdelaziz on topic Create K2 items prev and next link in a module
Hi,
Does this tutorial answer your question?
www.joomreem.com/joomla-developer-s-tips-and-tricks/item/56-k2-content-module-with-pagination-jquery-flavor.html
Does this tutorial answer your question?
www.joomreem.com/joomla-developer-s-tips-and-tricks/item/56-k2-content-module-with-pagination-jquery-flavor.html
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
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 30
10 years 3 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).
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
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 30
10 years 2 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.
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.