Some background info
PHP 5, MySQL 5, Apache 2, Ubuntu server, MODx Revolution 2.0.4-pl2
I’m following the instructions in
Creating a Blog in MODx Revolution and have the required Extras installed.
I’m having a problem where I try to display a list of latest blog posts. I am able to display the posts however, for each result, it will return the latest blog entry.
I have a slightly different container set up:
Home (1)
A page (2)
Blog (3) (container)
- 2010 (4) (container) (hidden from menu)
- A blog post (5)
- Another blog post (6)
- A blog post (7)
I am using the following code in my page to call the
snippet chunk
recentBlogPost.
[[!getResources?
&tpl=`recentBlogPost`
&parents=`3`
&hideContainers=`1`
&limit=`5`
&sortby=`publishedon`
]]
The
snippet chunk
recentBlogPost contains the following:
<li><a title="[[+pagetitle]]" href="[[~[[+id]]]]">[[+pagetitle]]</a></li>
I would appreciate someone pointing me in the right direction, what am I missing?