Copied to clipboard

Flag this post as spam?

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


  • Peter van Geffen 54 posts 290 karma points
    May 02, 2023 @ 08:42
    Peter van Geffen
    0

    How to skip current page in list

    How do i skip the current page (news item) in a list of news items shown on this page?

    So for example this is news item 02

    And i have a section on this page with more news

    • news item 01
    • news item 03
    • news item 04
    • etc...
  • Ivo van der Bruggen 7 posts 129 karma points
    May 02, 2023 @ 09:14
    Ivo van der Bruggen
    100

    If you have a list of IPublishedContent containing the other news items, you could simply say something like

    newsItems.Where(x => x.Id != Model.Id)
    
  • Peter van Geffen 54 posts 290 karma points
    May 02, 2023 @ 09:19
    Peter van Geffen
    1

    Thank you!. That does the trick

Please Sign in or register to post replies

Write your reply to:

Draft