This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
firearrow523535438
What I want to do is grab the latest blog post and display it on the homepage of the website. I can do it currently with my own post partial and the posts
variable injected by the blogPosts
component like so:
[blogPosts]
pageNumber = "{{ :page }}"
postsPerPage = 10
noPostsMessage = "No posts found"
sortOrder = "published_at desc"
categoryPage = "blog/category"
postPage = "blog/post"
==
{% partial 'site/blogpost' post=posts|last %}
However, I'd like to do this with the default post component that comes with the blog plugin, but the only dynamic way to inject the posts seems to be by using the slug in the url, which doesn't really work for the homepage. How can I achieve this?
1-1 of 1