pepperstreet VIP
Total posts: 3,837
10 Авг 2012 15:01

(Moved from C7 category. Re-Creation of my feature request topic for Resources 6G. For further comments and official answer, follow this link: [6G] Navigation | previous and next article, up ?)

Idea:

Previous/Next record:

I would like to see a simple page navigation. Display next/previous links to navigate between articles. Maybe with optional titles. Navigation should be displayed on top/bottom or both areas.

Another user mentioned a "book module" feature. Reminds me on DRUPAL's book navigation. Which even allows an UP navigation. This up-link leads to the category (parent item).

Examples

  • Joomla core article navigation with previous/next
  • misc WordPress plugins (simple and advanced!)
  • Drupal Book (screenshot)

Does it make sense to have a content-plugin OR a special field?

Thanks for listening.

PS: I am aware of possible problems through multiple category assignment and advanced filters. But this should not prevent the existing of a simpler "basic" solution. Please, readon in comments below...

Последние изменения: 18 Май 2021


Sergey
Total posts: 13,748
16 Сен 2014 14:36

Yes, something like this.

SELECT * FROM #__js_res_record WHERE section_id = 2 ORDER BY RAND() LIMIT 1

pepperstreet VIP
Total posts: 3,837
17 Сен 2014 02:07

Sergey Yes, something like this.

Thanks! Actually, it was a dumb question... I forgot about the Records module & field. Both have random parameter and category restriction!!! Even better: Templating and optional output of any other field ;)

PS: Only drawback with module (and J! standard features): Module is displayed on list and full view. So, optional and contextual display needs more work. Maybe a nice feature request for Records module: "Hide on record full view? Yes/No"


Jeff VIP
Total posts: 745
29 Май 2017 03:56

Just an out of the box remark:

Isn't what we are trying to achieve here just the same as having a list view where only one record is shown, with only next and previous buttons shown and page numbers hidden? You only need a list view that matches the record view.

List view > select record > new list view (1 record with record view layout)

So in this scenario you never go to a record view, you just switch between list views.

My 2 cents.....


pepperstreet VIP
Total posts: 3,837
30 Май 2017 20:33

Jeff, you are so creative... it hurts. ;)

Basically, you are right. You would have to display a "list" with 3 records. But...
if you already come from a regular list, the click on that list and record title would give you that particular ID. And then? How to get or keep the other two records?

On the other hand, if you just start with a 3-record list, it might work pretty well. Assuming you have an additional module tree/list on a sidebar.


Sergey
Total posts: 13,748
01 Июнь 2017 12:36

pepperstreet if you already come from a regular list

There is no regular list come from. this is regular list. You cannot go inside article. I think this is an idea.

pepperstreet Jeff, you are so creative... it hurts. ;)

Same feelings

Jeff Isn't what we are trying to achieve here just the same as having a list view where only one record is shown, with only next and previous buttons shown and page numbers hidden?

This my friend might be the most genious idea I heared around this problem. And it might work in 90 cases of 100.


pepperstreet VIP
Total posts: 3,837
01 Июнь 2017 18:57

Sergey There is no regular list come from. this is regular list.

Maybe you are right for the main content area, but if I think about a "book" or documenation listing...
I would need an overview or some sort of sidebar listing. If this sidebar index is created by a records modules or category module... each click will lead to the full view. How to generate a link to the 3-records-list?


Jeff VIP
Total posts: 745
02 Июнь 2017 02:50

pepperstreet Jeff, you are so creative... it hurts. ;)

lol

Sergey There is no regular list come from. this is regular list.

No. You start with a regular list. You select a record and the regular list changes into a single record list with simple pagination. It is like selecting a different list template but you are left with the record that was selected. This could probably be accomplished with javascript instead of php?

Sergey You cannot go inside article. I think this is an idea.

Yes!

Sergey This my friend might be the most genious idea I heared around this problem.

eyes tearing up

Seriously, one big issue with my suggestion is that you still need to remember what has been selected.


Sergey
Total posts: 13,748
02 Июнь 2017 12:20

pepperstreet I would need an overview or some sort of sidebar listing. If this sidebar index is created by a records modules or category module... each click will lead to the full view. How to generate a link to the 3-records-list?

Actualy you can create this list right here in list template. You add grid, and on left column you show articles as menu navigation and on right column you show seleted article start from first.

Jeff Seriously, one big issue with my suggestion is that you still need to remember what has been selected.

Then you do nto need to strat from other list.


pepperstreet VIP
Total posts: 3,837
03 Июнь 2017 00:16

I can feel so much...

file

Sergey

pepperstreet I would need an overview or some sort of sidebar listing. If this sidebar index is created by a records modules or category module... each click will lead to the full view. How to generate a link to the 3-records-list?

Actualy you can create this list right here in list template. You add grid, and on left column you show articles as menu navigation and on right column you show seleted article start from first.

Sorry, but I did not understand the "magic" part of it ;)
Did you mean two lists in one template? How should the link in the index work?


Sergey
Total posts: 13,748
18 Июнь 2017 09:33

pepperstreet Sorry, but I did not understand the "magic" part of it ;)

Did you mean two lists in one template? How should the link in the index work?

Look you have $this-items array with records. So you can go through it twice. In left column you just list titles and in right column you show this page nav template. On the left column list you make links to articles on the right.

It is sort of gallery vew wheer you have thumbnails at the bottom, and pictures on top. You show all thumbnails and only one full picture. You have next and prev links for pictures and you can also navigate through thumbnails.


Giorgi625 VIP
Total posts: 655
18 Май 2021 10:27

Hello guys do we have any news about this feature, I am also in need of this prev/next buttons. No need filtering solution, I just need to add links to previous and next records depending on ID of record.

Работает на Cobalt