Hi guys.
I’ve trying to make a blog using the example documentation in the revo docs.
http://rtfm.modx.com/display/revolution20/Creating+a+Blog+in+MODx+Revolution
I’ve hit another roadbump.
I’ve adapted the code in the documentation.
I’m using a template that for my blog page. I expect it to print out my blog posts. I use this code:
[[$pageHeader?]]
<div id="blog-container">
[[!getResourcesTag?
&elementClass=`modSnippet`
&element=`getResources`
&tpl=`blogPostTemplate`
&parents=`16`
&limit=`5`
&includeContent=`1`
&includeTVs=`1`
&showHidden=`0`
&hideContainers=`1`
&cache=`0`
&pageVarKey=`page`
]]
[[!+page.nav:notempty=`
<div class="paging">
<ul class="pageList">
[[!+page.nav]]
</ul>
</div>
`]]
</div> <!-- blog-container ends -->
[[$pageFooter]]
Instead of displaying blog posts, it prints a snippet of php code, wrapped in <pre> tags.
My page looks like this:
http://imgur.com/58cv4.jpg
What could be happening here?