Saurabh Jain Posted February 27, 2018 Posted February 27, 2018 This will certainly help in better navigation within records
Saurabh Jain Posted February 28, 2018 Author Posted February 28, 2018 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
**pushkar** Posted February 28, 2018 Posted February 28, 2018 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?
Saurabh Jain Posted February 28, 2018 Author Posted February 28, 2018 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
Adriano Faria Posted February 28, 2018 Posted February 28, 2018 20 hours ago, Saurabh Jain said: This will certainly help in better navigation within records https://invisioncommunity.com/forums/topic/443357-code-for-nextprevious-record-in-display-template/
opentype Posted February 28, 2018 Posted February 28, 2018 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.
Meddysong Posted February 28, 2018 Posted February 28, 2018 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.
Joel R Posted February 28, 2018 Posted February 28, 2018 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 ...
opentype Posted February 28, 2018 Posted February 28, 2018 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.
CheersnGears Posted February 28, 2018 Posted February 28, 2018 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.
Saurabh Jain Posted March 5, 2018 Author Posted March 5, 2018 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
Saurabh Jain Posted March 6, 2018 Author Posted March 6, 2018 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 It is showing the complete url I need a formatting .. Custom formatting please advise
Saurabh Jain Posted March 6, 2018 Author Posted March 6, 2018 and one more issue .. It is opening in new window.. I want to keep it in same window
Saurabh Jain Posted March 6, 2018 Author Posted March 6, 2018 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>
opentype Posted March 6, 2018 Posted March 6, 2018 An URL field wasn’t Joel’s suggestion. You can use the database relationship field, which is much better.
Saurabh Jain Posted March 6, 2018 Author Posted March 6, 2018 Thanks once again... it was working well .. just the display was an issue... let me try with the other field I have changed the field type to db relationship but now what to add in this field... How to fetch the record
Saurabh Jain Posted March 6, 2018 Author Posted March 6, 2018 Done Resolved................. M happy......... https://vidyasagar.guru/mookmati/mahakavya/khand-1/page-1/
opentype Posted March 6, 2018 Posted March 6, 2018 if you wrap it all with: {{if $formValue}} // your code {{endif}} it disappears if there are no previous/next entries to show.
Saurabh Jain Posted March 7, 2018 Author Posted March 7, 2018 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.