Hi! I’ve been trying for some days mi web page to work with an archive blog but I’ve to have some problem.
- I’ve 2 parents documents (32 and 40) which contains my blog entries.
- I’ve 1 document (56) where I call Reflect with:
[!Reflect?config=`wordpress` &targetID=`59` &id=`wp`&showItems=`0` &groupByYears=`1` &getDocuments=`1` &dateSource=`StartTime`&dittoSnippetParameters=`parents:32,40`!]
- I’ve another document (59) where I put the filtered documents with:
[+wp_month+] [+wp_day+] [+wp_year+]
[!Ditto?&id=`wp`&parents=`32,40`&dateSource=`StartTime`&extenders=`dateFilter`&tpl=`lista_miembros`!]
Well, the result in the page of reflect call it’s ok, but when I click in the results:
* enero 2009
* diciembre 2008
* noviembre 2008
The page show no results ("No documents found.").
I’m using Ditto & Reflect 2.1 version, and Modx 0.9.6.2, can somebody helps me?
P.D: StartTime is a variable which is not the problem because without it the problem is the same when I delete this "&data source" from both calls.
Please, I’m sure that some of you can help me with this problem...
I need to get it running soon to my boss...
Thanks.
Try adding &sortBy=`StartTime` to your Ditto call.
I don’t think this is your problem, but in the reflect call, config should be &config.
Tried your way and, after changing the template (still don’t know why with a different template it works) it’s almost solved.
Then only thing it’s that does no show anything in:
<h2>[+ wp_month +] [+ wp_year +]</h2>
It’s not logical because if these variables are correctly readed to filter the documents, must be correctly read to show its valor...
Thanks.
I don’t know why is not running.
I solved it with the parameter &tplFirst (including the code there), but think that could be easier.
Thanks.