+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Blog list to exclude newest post?

Blog list to exclude newest post?

3 posts, 1 answered
  1. Nate
    Nate avatar
    3 posts
    Registered:
    12 Dec 2014
    07 Jun
    Link to this post
    Is there a simple setting or filter to exclude the newest blog post from a blog list? Basically we are loading the newest post differently than the past posts (listed underneath the newest post) and do not want the past posts to include the newest one (otherwise it would be duplicated).
  2. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    08 Jun
    Link to this post

    Hi Nate,

    I guess I would try one of the following options:

    1. Create two separate widgets. The first one is filtering just the latest blogpost (by setting the maximum to one and order descending. The second widget should render all the blogposts and with JS or CSS you could hide the first one (the newest blogpost)

    2. Create one new widget that acts like a template for the blogpost list. In this template (which is a UserControl) you could manipulate the data on databinding. I've done something similar with the News widget. Here's my code as Gist (since I cannot add code through this editor)

    https://gist.github.com/konstrui/a6323e39ba3e968af6d2b3ac93a35a6c

    Hope that helps a bit?

    Best regards,
    Daniel

    Answered
  3. Nate
    Nate avatar
    3 posts
    Registered:
    12 Dec 2014
    12 Jul
    Link to this post
    It does help, but it also confirmed my thoughts and direction. Thank you for your help.
3 posts, 1 answered