I’ve got a simple blog set up, more or less by following the "Creating a Blog" tutorial.
However, I have been unable to get a list of posts to show up in Archivist. I was originally following the tutorial, but when I didn’t get any archived posts showing up, I decided to simplify things and make direct Archivist/getArchives snippet calls. The first part, on the "blog" page shows up fine (shown after the code):
[[!getResourcesTag?
&elementClass=`modSnippet`
&element=`getResources`
&tpl=`viewpointPost`
&parents=`3`
&limit=`1`
&includeContent=`1`
&includeTVs=`1`
&showHidden=`1`
&hideContainers=`1`
&cache=`0`
&pageVarKey=`page`
]]
<hr />
<h3>Archives</h3>
<ul>
[[!Archivist?
&tpl=`arcRowTpl`
&target=`6`
&parents=`3`
]]
</ul>
Produces this (at the bottom of the page):
______________________________________________
Archives
December 2010 (1)
November 2010 (1)
However when I click on one of the above (specifically I used the November one because they are over 30-days old and are supposedly "archived"), I get the following result:
November 2010 Archives (0)
____________________________________________
The "target" (6) resource is (I discovered the "total" placeholder by reading the code):
[[!getArchives?
&tpl=`arcResultTpl`
&parents=`3`
&toPlaceholder=`archives`
]]
<h3>[[+arc_month_name]] [[+arc_year]] Archives ([[+total]])</h3>
[[+archives]]
<hr />
Since the "total" (I assume number of rows retrieved) is zero, it really doesn’t matter what my template chunk looks like!
I turned on "debug" and saw the query (wow!) and it appears to have the correct year and month (and parent). There are, by the way, two published child resources of (3), one in
November and one in December 2010. Correctly reported by Archivist on the "blog" page.
I’m perplexed. Other than getting much deeper into the code and the database than I really want to, I’m not sure what to do next