Jump to content

previous & next button in pages database

Featured Replies

Posted

This will certainly help in better navigation within records 

  • Author

I have a 488 page book

I have created a record for each page

https://vidyasagar.guru/mookmati/

 

If I am on page 2 .. I need a link for page 1   and page 3 

such on each page

 

4 hours ago, Saurabh Jain said:

I have a 488 page book

I have created a record for each page

https://vidyasagar.guru/mookmati/

 

If I am on page 2 .. I need a link for page 1   and page 3 

such on each page

 

Previous and next page options are showing on the pages. What do you want?

  • Author
31 minutes ago, **pushkar** said:

Previous and next page options are showing on the pages. What do you want?

I cannot see 

can you share screenshot 

I agree to the feature request. Having database records that should be read and linked in order is not the case for all uses, but for A LOT of uses. Think of a Tutorial database for example where each record represents a step. How would you access the next step once you are on the record page?

  • The “next unread” option that is there is of not much use in this case. It’s not about read/unread, it's about the previous/next item based on the database ordering. 
  • The prevItem/nextItem variables available in the code also don’t work since they also don’t use the database ordering. 

A related problem is the missing option to reorder uploads to a multi-upload field. 

So in both cases, with individual records or items of an upload fields, it is too tricky to set up, order and guide users through the entries. 

1 hour ago, opentype said:

Think of a Tutorial database for example where each record represents a step. How would you access the next step once you are on the record page?

Ironically, that's a problem in IPS's own Guides section. I always find it a headache having to negotiate to the next step, especially because the relevant category list used to access the record collapses when it loads.

2 hours ago, Meddysong said:

Ironically, that's a problem in IPS's own Guides section. I always find it a headache having to negotiate to the next step, especially because the relevant category list used to access the record collapses when it loads.

Amen.  

@opentype Im thinking very creatively (aka making stuff up), but doesn't IP.Pages include custom fields that can be linked to each other?  Therefore, you can ... 

1. Define a custom field.  Call it chapters in a book, so you'll have Chapter 1 2 3 ... 488.  

2. Then you can relate or link one record to another.  So chapter 5 can be linked to chapters 4 and 6.  

Maybe? I feel like it's a very hacky method but also not, because you can customize the order ... 

Yeah, try doing that with 1000 records and when you add something inbetween you always have to update the neighboring records as well. 

The recording listings already have the proper order the admin wants. That just isn’t available on the record view. I know how to manually retrieve it with custom database queries, but a stock feature would make a lot of sense, either directly usable in the template or at least as variable accessible without custom database queries. 

My request would be more modest... I just want the previous and next buttons to be much larger rather than this anonymous and hidden little thing at the bottom. 

 

2018-02-28_14-05-46.png.56081f13481bbed439e4d4de1d1829c6.png

  • Author

how you can see the next page option /  next record option.......

 

I have 488 pages of a book and I want user to go on next page or previous page...just as a book

Should I place it manually ?

I have to deliver .. what is the best way  

  • Author
On 2/28/2018 at 11:28 PM, Joel R said:

Amen.  

@opentype Im thinking very creatively (aka making stuff up), but doesn't IP.Pages include custom fields that can be linked to each other?  Therefore, you can ... 

1. Define a custom field.  Call it chapters in a book, so you'll have Chapter 1 2 3 ... 488.  

2. Then you can relate or link one record to another.  So chapter 5 can be linked to chapters 4 and 6.  

Maybe? I feel like it's a very hacky method but also not, because you can customize the order ... 

This looks a very good idea 

I have 488 pages

 

on page 1 I have created a new field URL   which will be named   next page

https://vidyasagar.guru/mookmati/mahakavya/khand-1/page-1/

I have added url

image.thumb.png.ae659b9f5fa35cfe3ffa3a962b803878.png

It is showing the complete url

I need a formatting .. Custom formatting  

please advise

 

  • Author

and one more issue .. It is opening  in new window.. I want to keep it in same window 

  • Author

I tried this 

image.thumb.png.ae848343f23b4d30da2e9fb575fe1c2f.png

 

and this showed error

image.thumb.png.3cd283b68ac303db41ef1324f2394125.png

it says {$label but it should say {$label}

 

  • Author
11 minutes ago, opentype said:

it says {$label but it should say {$label}

 

Thanks   It worked... however additional characters coming in end

I have added url in field   https://vidyasagar.guru/mookmati/mahakavya/khand-1/page-2/

however it is pointing to 

 

https://vidyasagar.guru/mookmati/mahakavya/khand-1/page-1/%3Ca

 

<a href={$value}>{$label}</a>
 

image.png

An URL field wasn’t Joel’s suggestion. You can use the database relationship field, which is much better. 

  • Author

Thanks once again...

it was working well .. just the display was an issue...

let me try with the other field

image.thumb.png.71723b05be68ecdedee33ec24b21c1c9.png

 

I have changed the field type to db relationship

but now what to add in this field...

How to fetch the record

if you wrap it all with:

{{if $formValue}}

// your code

{{endif}}

it disappears if there are no previous/next entries to show. 

  • Author

image.thumb.png.aa368d718cb445c2385e5ffdf036be30.png

 

Previous page and next  page not looking good 

If previous page can be in left and  the next page can be in right most position

may be like page options....

can this be done ?

a little increase in font

 

 

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.