Surfacing Lasted Blog entry regardless of Category
Need some help on figuring this out. I'm attempting to write my own component to pull the latest blog via REST API. THe issue I seem to have has to do with our structure. Here is how our community is set up....
- Community
- Category A
- Blog A1
- Blog A2
- Category B
- Blog B1
- Fourm B1
- Category C
- Blog C1
- Blog C2
- Forum C3
Ok, so now I want to pull the LATEST Blog written regardless of which Category it may have been written under. Like if BLog C1 has an article written yesterday and BLog B1 just had a brand new article I want it to pull the B1 article. I can't seem to figure this out. I can pull blog posts under a specific category, but not from all categories...can someone help point me in the right direction?
Try getting your message with this rest call. It says "get me the 1 latest topic from a blog in the community". Sounds like what you are looking for.
<#assign recent= rest(“/topics/style/blog/recent?page_size=1”).messages />