web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Paginated results in CRM Portal

(0) ShareShare
ReportReport
Posted on by

Hi,

I am using the out of the box "Most Recent Articles" and I'm wondering if how to use pagination for this one once it reached more than 10 results. 

Thank you,

rome

*This post is locked for comments

I have the same question (0)
  • Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    You can use an Entity List to display the results, and set the page size. This will automatically have paging for you.

  • Suggested answer
    Justinjose Profile Picture
    2,707 on at

    Hi Rome,

    Entity List come with pagination and if you want to customize entity list then you should add pagination manually. follow below link for an example. Page Size you can set in Entity list

    docs.microsoft.com/.../render-entity-list-current-page

    Thanks

    Justin Jose

  • Community Member Profile Picture
    on at

    I want to use the Entity List but it won't let me filter the results by content access level. I'm  "entity listing" Knowledge Articles.

  • Verified answer
    Dmytro Rutkovskyi Profile Picture
    1,835 on at

    Hi Rome,

    It looks like you are happy what OOB Portal propose you but you just want longer list with Paging.

    You can easily achieve it with basic Javascript:
    Go to Portals->WebTemplates->Knowledge Management - Most Recent Articles and edit it.
    I used first-found simple pagination on GitHub here

    You should definitely modify this customization, but you can start with something like (highlighted changed places from OOB):

    {% assign count = 30 %}
    {% assign languagecode = website.selected_language.code %}
    <script src="cdn.rawgit.com/.../jquery.easyPaginate.js" ></script>
    <style>
    #easyPaginate a {display:block;margin-bottom:5px;}
    .easyPaginateNav a {padding:5px;}
    .easyPaginateNav a.current {font-weight:bold;text-decoration:underline;}
    </style>
    
    <div class="panel panel-default">
      <div class="panel-heading">
        <div class="panel-title">{% editable snippets 'KnowledgeMgmt/MostRecentArticles' type: 'text', default: resx['KnowledgeMgmt_Most_Recent_Articles'], escape: true, tag: 'span' %}</div>
      </div>
      {% assign recent_articles = knowledge.articles | recent: count,languagecode  %}
      {% if recent_articles %}
        <div class="list-group" id="easyPaginate">
        {% for article in recent_articles %}
          <a class="list-group-item" href="{{ article.url | escape }}"><div class="pull-right text-muted small" style="margin-left: 5px;">{{ article.modifiedon | date: 'MMM d, yyyy' | escape }}</div>{{ article.title | escape }}</a>
        {% endfor %}
        </div>
      {% endif %}
      
      <script type="text/javascript">
      $(function() { 
        $('#easyPaginate').easyPaginate({
          paginateElement: 'a',
           elementsPerPage: 5
         });
       });
      
      </script>
    </div>


    Which gives you a list of 30 last articles on 6 or fewer pages:
    most_5F00_recent_5F00_paging.JPG

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans