Forum Discussion

gleung's avatar
gleung
Mentor
10 years ago

Feature a blog post

Is there are way to 'feature' a blog post so that it appear at the beginning of the blog articles list?

  • gleung - Well, the feature you're referring to is like floating a thread which keeps the thread at the top of the message list. Unfortunately, this is not available in blogs, might be because the blogs show a lot more additional details related to its content compared to only subject and few minor details of thread which fits a row of a list, whereas blogs don't display in a list.

     

    But there are a couple of workarounds for this:

     

    1. You can add the Featured Topics component on the blogs page and then feature the required blog, it will show the blogs you featured on that page, always on top.
    2. As the default component will not have the exact UI as you'd expect, you can make a custom component and have the UI and design as you require.

     

    Option 1 would be just a 5 minutes task, but 2 would require some effort. It is upto you to decide. I hope this helps.

  • Hi gleung, 

     

    We've done something similar in our community by creating a custom component, in our case we've used it to promote the latest blog article but you could change it to pull a featured article (when you feature it from the Options menu).

     

    The API call below will return the latest featured blog article

     

    /restapi/vc/threads/style/blog/featured?page_size=1&featured_threads.sort_direction=descending

    If you want to return more than 1 featured article you can increase the page_size value or remove it to produce a complete list.

     

    Let us know if this helps.

  • JohnD's avatar
    JohnD
    Khoros Alumni (Retired)

    Great ideas, GrazittiI  and RobertT . I'm going to create a new Blogs TKB article with these solutions in our Blogs Doc TKB, leveraging your posts here. Keep the great ideas coming.