-
☆ A M B ☆
- 476 Posts
So I’ve created a blog using Ditto and Reflect. The problem I’m having is getting the dates that output to be "pub_date" and not "createdon". When I switch these values in "&dateSource", the system goofs. When using "createdon", the dates output as they should on the date the Resource was created. When I use "pub_date", I get year of "1969" with a month of "December". I have no idea why. I’ve change that parameter both in my config file (see below) and in the Reflect call itself. Anyone else run into this problem? I’m using MODx 1.03. Here’s the Reflect call:
[!Reflect? &config=`blog` &id=`blog` &targetID=`4` ¶ms=`parents:4` &parents=`4` &dateSource=`createdon`!]
The code for &config=`blog` is:
<?php
// Use the following syntax $param = 'value';
$id = 'blog';
$display = 'all';
$showItems = '0';
$monthSortDir = 'DESC';
$getDocuments = '1';
$tplContainer = 'blog.archive.container';
$dateSource = 'createdon';
?>
The output for Reflect shows the dates of the blog I’ve created using Ditto when using "createdon":
-- 2009
--- November
--- December
-- 2010
--- April
--- March
Precision Web Development ... SmashStack.com