Hi,
This is probably pretty basic, but I have difficulty getting blog posts from another space.
I want the blog posts of my space "PAR" to be listed on our home page. I understand that $blogPosts is for the actual page itself, hence this code should work in that context.
#foreach($blogPost in $blogPosts)
<h2>$blogPost.title</h2>
<p>Written by $blogPost.creator.username on $blogPost.creationDate("MMM dd, yyyy")</p>
<div>$blogPost.content</div>
#end
I tried to fetch the blog of another space with this:
#set ($blogs = $include.blogObject("PAR"))
and then loop with #foreach($blogPost in $blogs)
Nothing is showing.