Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • yogesh pathak 136 posts 221 karma points
    Jul 22, 2015 @ 05:10
    yogesh pathak
    0

    How to load content data on ajax call?

    Hi All,
    I am using following query to get list of news content by following query-

    Umbraco.Content(10118).Children("News").Where("Visible").OrderBy("datePublished descending").ToList();


    this query bring me all the news content i have created till now but what i actually want is - to load only 5 content at first then when i click on "Load more" 5 more news content should be loaded. any help for doing so?

    Thanks
    Yogesh pathak

  • jigar 170 posts 233 karma points
    Jul 22, 2015 @ 06:35
    jigar
    0

    Hi Yogesh,

    You can use the .Take(5) in you query to get the first 5 nodes

    and when you click "Load More" then you call the query without .Take(5)

    Hope it helps.

    Thanks, Jigar

Please Sign in or register to post replies

Write your reply to:

Draft