First off, I apologize for the rapid-fire help requests. I’m trying to get this blog up and running before classes start on Monday...
I’m attempting to follow the Ditto "Wordpress-style archives" tutorial (
http://ditto.modxcms.com/tutorials/wordpress-style-archives.html), but I find that the [+wp_day+], [+wp_month+] and [+wp_year+] placeholders are not being populated in my archive display page, nor is the date filter being applied to the results of the ditto call on that page.
Here’s the Reflect snippet that generates the archive display (it’s in document 3, which is the parent container for the blog entries):
[!Reflect?config=`alterblog` &targetID=`13` &getDocuments=`1` &dittoSnippetParameters=`parents:3`&id=`wp`!]
and on document 13 (alias: blog-archive.html), which is the archive display:
<h2>[+wp_month+] [+wp_day+] [+wp_year+]</h2>
[!Ditto? &id=`wp` &extenders=`dateFilter` &parents=`3` &filter=`hidemenu,0` &tpl=`ditto_BlogEntry` &display=`all` &filter=`hidemenu,0` &tagData=`blog_tags` &tagDelimeter=`, ` &tagDocumentID=`10` &summarize=`20` &paginate=`1` &paginateAlwaysShowLinks=`1`!]
<p>
Showing <strong>[+wp_start+]</strong> - <strong>[+wp_stop+]</strong> of <strong>[+wp_total+]</strong> Articles | Page <strong>[+wp_currentPage+]</strong> of <strong>[+wp_totalPages+]</strong>
</p>
<div id="ditto_pages">
[+wp_previous+] [+wp_pages+] [+wp_next+]
</div>
For the record, clicking on one of the links generated by the Reflect instance gets me to the archive page with the following querystring:
blog-archive.html?wp_month=8&wp_ditto_year=2007&wp_day=false&wp_start=0
The page displays the ditto call alright, but the date-related placeholders are empty and the ditto output is not filtered by date at all..
Ditto Version 2.0.2
ModX Version is 0.9.6,
MySQL Version is 5.0.30
PHP Version is 5.2.0-0.dotdeb.3 with Suhosin-Patch 0.9.6.2