Blog list to exclude newest post? - General Discussions - General Discussions - Progress Community
 General Discussions

Blog list to exclude newest post?

  • Blog list to exclude newest 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).
  • 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

  • It does help, but it also confirmed my thoughts and direction. Thank you for your help.