Custom Blog Widget Multiple Blogs
I am developing a custom blog widget to understand more about how sitefinity works, as I feel that in order to utilize sitefinity more I must get an understanding of how it works instead of using out of the box functionality.
I currently have a blog widget that has a master / detail setup all going great.
What I would like to achieve now is to be able to filter these by the specific blog they are in i.e:
What I would like to do is only show the posts for blog one or blog two.
I would guess that I can get a list of the blogs from the blog manager and they bind these to a dropdown in the designer so that the user can choose?
Would anybody know how this can be achieved and if so share a little code to explain?
Here is how the required functionality is implemented in Sitefinity:
Thanks for the info, I think maybe I wasn't clear in what I was trying to achieve. I was trying to populate a dropdown list in a widget designer so that the user can select which blog they want.
Is this correct?
Yes, you can use JQuery to call ~/Sitefinity/Services/Content/BlogService.svc that will return all blogs in JSON format:
Thanks I'll give this a try and see how I get on.