Public
Occasional Advisor

Pagination in custom page

HI,

  I want to add pagination to a custom page. The Custom Component is as below. Let me know how to go about it. Currently it lists all the messages on the same page.

 

<style>

/*Css style added here */

</style>
<section>
<#assign x= rest("2.0","/search?q=" + "SELECT * FROM messages WHERE board.id = 'MobileTalkBlogs' ORDER BY post_time DESC"?url) />
<#list x.data.items as message>
<div class="adn MessageView lia-message-view-blog-message lia-message-view-display lia-row-standard-read lia-thread-topic lia-message-authored-by-you">
<div class="frst_ic">
<img src=${asset.get("/html/assets/av_ic_fm.png")}>
</div>
<div class="li_o ">
<h2><a href="${message.view_href}">${message.subject}</a></h2>
<span>by <font class="hl_txt">Admin</font>
<#if message.author.view_href??>
<a href="${message.author.view_href}" class="black_font">${message.author.login}</a>
<#else>

</#if>
</span>
<p>
<#if message.search_snippet??>
${message.search_snippet}
<#else>

</#if>
</p>
<#if message.conversation.view_href??>
<a href="${message.conversation.view_href}" class="lm">Learn More</a>
<#else>

</#if>

</div>
<div class="dt">
<span>
<#if message.conversation.last_post_time_friendly??>
${message.conversation.last_post_time_friendly}
<#else>

</#if>
</span>
</div>

</div>
</#list>
</section>

  

2 Replies 2
Honored Contributor

Hi,

  I am yet to figure out where to add the pagination in my code. I am  new to this so maybe it sounds a bit wierd. Can you check the code and let me know where to add the pagination

Welcome to the Technology board!

Curious about our platform? Looking to connect on social technology? You've come to the right place!

Are you a Khoros customer? For direct assistance from our Support team, please visit the Support Forum.