Jump to content

How to enable pagination in related videos


Tech Support

Recommended Posts

demo.png.b4230a3f5b67db26f8a6b1b6df715eca.png

Step 1. Open Website UI -> Pages -> View Video page -> Related Videos block for editing.

 

Step 2. Change parameters:

  • Under sort_by make sure you deselect Pseudo-random sorting and choose another sorting, as pseudo random sorting doesn't support pagination.
  • Enable var_from = from.

 

Step 3. Add the following 3 lines:

{{assign var="pagination_use_load_more" value="true"}}
{{assign var="pagination_no_links" value="more"}}
{{include file="include_pagination_block_common.tpl"}}

into block template code right after this one:

{{include file="include_list_videos_block_common.tpl"}}

 

Step 4. Adjust styles to add some spacing after load more button:

.related-videos {
    padding-bottom: 15px;
}

 

  • Like 2
  • Thanks 1
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...