for example, just using smart-blog plugin, we are displaying all the posts in the blog page in a recently published order. In the same we want to display the short content of recently published 3 or 4 posts in the home page of the website (means not in the blog page). please check this link for reference for the blog page : http://constro-umbraco.potenzaglobalsolutions.com/blog/blog-classic/right-sidebar/
You could create a partial view, I did this with 1 of my websites. So I had the main blog page, then created a partial view for the home page which showed the 3 latest blog articles. I then could use this on other pages as well.
Hi Riaz,
Here is how I do it on my site - I use a partial view on the homepage which gets the latest 6 blog posts - it could be any post though.
I also take an excert from the blog and show that on the homepage.
It's not smart blog but I think it should still point you in the right direction hopefully. This code is actually using Articulate - another blog package.
How to display recent posts in home page
How to display recent posts in home page that is not a blog page. kindly support.
What do you mean by recent posts? how are these "posts" generated?
for example, just using smart-blog plugin, we are displaying all the posts in the blog page in a recently published order. In the same we want to display the short content of recently published 3 or 4 posts in the home page of the website (means not in the blog page). please check this link for reference for the blog page : http://constro-umbraco.potenzaglobalsolutions.com/blog/blog-classic/right-sidebar/
You could create a partial view, I did this with 1 of my websites. So I had the main blog page, then created a partial view for the home page which showed the 3 latest blog articles. I then could use this on other pages as well.
Could you please share the code and procedure the achieve the above mentioned recent posts as per your suggestion.
Hi Riaz, Here is how I do it on my site - I use a partial view on the homepage which gets the latest 6 blog posts - it could be any post though.
I also take an excert from the blog and show that on the homepage.
It's not smart blog but I think it should still point you in the right direction hopefully. This code is actually using Articulate - another blog package.
Hope it helps.
O.
Hello Riaz,
What I would do is create a new Partial view called something like Homeblog, then using the Query builder select what data you want to get e.g
I want to get all "Blog Comments" from "Blog"
You can also select how you want to order it, If you want to get e.g the latest 5 comments just add the following to your selection;
Then go to your home page template and insert the Partial view.
This is how I show the latest blogs on my home page which you can adapt.
How would you display the blogpost image here?
Same sort of way.
is working on a reply...