yyz Posted December 16, 2023 Share Posted December 16, 2023 Basically as title says, I want to put next/prev and random buttons to video page so user can list or choose random. Quote Link to comment Share on other sites More sharing options...
Tech Support Posted December 17, 2023 Share Posted December 17, 2023 It is possible to do in Website UI -> Pages -> View Video page -> video_view block. First you need to enable show_next_and_previous_info parameter and choose sorting option for it. Then in template you can use the following code to show: <p> <label>Random video</label> <span> <a href="{{$config.project_url}}/random_video/">Random video</a> </span> </p> {{if is_array($next_video)}} <p> <label>Next video</label> <span> <a href="{{$next_video.view_page_url}}">{{$next_video.title}}</a> </span> </p> {{/if}} {{if is_array($previous_video)}} <p> <label>Previous video</label> <span> <a href="{{$previous_video.view_page_url}}">{{$previous_video.title}}</a> </span> </p> {{/if}} 1 Quote Link to comment Share on other sites More sharing options...
yyz Posted December 17, 2023 Author Share Posted December 17, 2023 1 hour ago, Tech Support said: It is possible to do in Website UI -> Pages -> View Video page -> video_view block. First you need to enable show_next_and_previous_info parameter and choose sorting option for it. Then in template you can use the following code to show: <p> <label>Random video</label> <span> <a href="{{$config.project_url}}/random_video/">Random video</a> </span> </p> {{if is_array($next_video)}} <p> <label>Next video</label> <span> <a href="{{$next_video.view_page_url}}">{{$next_video.title}}</a> </span> </p> {{/if}} {{if is_array($previous_video)}} <p> <label>Previous video</label> <span> <a href="{{$previous_video.view_page_url}}">{{$previous_video.title}}</a> </span> </p> {{/if}} this work good! BUT problem is when i try to click random and again random it leads to blank page. Quote Link to comment Share on other sites More sharing options...
Tech Support Posted December 18, 2023 Share Posted December 18, 2023 Please create support ticket with details. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.