Hi guys.
I’m (still) trying to figure out how to make a blog with revo, using the documentation here:
http://rtfm.modx.com/display/revolution20/Creating+a+Blog+in+MODx+Revolution
I have a page that is supposed to show my blog posts.
It uses my basic page template. In the resource content, I have this:
[[!getResourcesTag?
&elementClass=`modSnippet`
&element=`getResources`
&tpl=`blogPost`
&parents=`[[*id]]`
&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>
`]]
When I visit the page that this code generates, I see the context of the blog entry, but not the entry itself.
For each entry, I get the title, the meta information ("posted by") and a the "read more" and "comments" links generated by my chunk:
<div class="post">
<h2 class="title"><a href="[[~[[+id]]]]">[[+pagetitle]]</a></h2>
<p class="post-info">Posted by [[+createdby:userinfo=`fullname`]]
[[+tv.tags:notempty=` | <span class="tags">Tags:
[[!tolinks? &items=`[[+tv.tags]]` &key=`tag` &target=`1`]]
</span>`]]</p>
<div class="entry">
<p>[[+introtext]]</p>
</div>
<p class="postmeta">
<span class="links">
<a href="[[~[[+id]]]]" class="readmore">Read more</a>
| <a href="[[~[[+id]]]]#comments" class="comments">
Comments ([[!QuipCount? &thread=`blog-post-[[+id]]`]])
</a>
| <span class="date">[[+publishedon:strtotime:date=`%b %d, %Y`]]</span>
</span>
</p>
</div>
If I’m on my blog page and I click "read more", it takes to a page with just that blog post on it, presented in the selected template. And the content is visible.
If I understand the tutorial correctly, and from what I understand from the code on the tutorial, I should expect to see the content of my posts, published by getResourcesTag.
What’s going on here?
How can I publish the post content?