Recently, my Treepl has been very slow, and now I seem to have figured out the reason.
I wanted to show blogs and on the right hand side of the blog, I wanted to display some titles of recent blogs, so I created a snippet(recent_articles) and inserted the snippet in each blog
The problem is the page won’t load with the snippet, because of the recursion I guess.
But I do need a snippet that can display the latest 5 blogs, I was wondering if there is a work around?
Hi @Linda. I think I’m confused by your terminology here.
Just to clarify, a ‘Blog’ is the overall container module (typically a site would only have 1 Blog) and ‘Blog Posts’ are the individual articles within a given Blog.
So do you have multiple Blogs on your site?
And you are listing those Blogs on a page, but also want to display a few recent Posts for each Blog?
A link to the site might really help. You can PM me the link if more appropriate.
Yes, there are multiple ‘Blog’ modules on my site (Does this cause a problem?) Each Blog contains a Post. and I also want to display a few recent Posts for each Post. I will PM you the link.
Hi @Linda ,
You can’t render a snippet with a Blog List in Blog Post Description because of recursion. You’d better render this snippet in a Blog Post Detail.
Yes, from the blog post description in a blog post detail layout. And you have the same code in all the posts description, so you can move this code to the blog post detail layout and keep only the part that changes in the blog post description.