Copied to clipboard

Flag this post as spam?

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


  • UmbracoDev 2 posts 83 karma points
    Oct 26, 2016 @ 15:08
    UmbracoDev
    0

    Articulate Blog

    Hi,

    I need to limit the blog counts. It shows all the blogs in the following code. Please guide me to implement show more functionality

    foreach (var post in Model.Children

    Thanks in Advance

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Oct 26, 2016 @ 15:49
    Alex Skrypnyk
    0

    Hi UmbracoDev,

    Try to use this code:

    Children.ToList().Take(10)
    

    Thanks,

    Alex

  • UmbracoDev 2 posts 83 karma points
    Oct 26, 2016 @ 16:39
    UmbracoDev
    1

    Thank you so much Alex. It works.

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Oct 26, 2016 @ 16:43
    Alex Skrypnyk
    100

    UmbracoDev, glad tp help you.

    Mark this topic solved please, and have a nice evening!

    Alex

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies