Hello,
There’s something fishy going on with Ditto and Reflect 2.1 on this website (
http://www.stephanschultz.com/stephan-schultz-gigs.html) I’m building.
Both Ditto and Reflect work like a charm and do exactly what I want them to do, which is great, but there’s a slight imperfection which bothers me:
Placeholders like [+start+], [+stop+], [+total+], [+currentPage+], [+totalPages+], [+month+], [+year+] etc. remain empty.
Here’s the chunk containing the Ditto and Reflect call:
[!Ditto? &display=`2` &paginate=`1` &paginateAlwaysShowLinks=`1` &parents=`58` &tpl=`GigOverview` &dateSource=`gigDate` &dateFormat=`%d-%m-%Y` &filter=`gigDate,[!timeFilter!],3` &orderBy=`gigDate ASC`!]
<p>Showing [+start+] - [+stop+] of [+total+] Articles | Page [+currentPage+] of [+totalPages+]</p>
<p>[+previous+] [+pages+] [+next+]</p>
[!Reflect?config=`wordpress` &targetID=`68` &filter=`gigDate,[!timeFilter!],4` &getDocuments=`1` &dateSource=`gigDate` &tplContainer=`ArchiveTpl` &dittoSnippetParameters=`parents:58` &id=`wp`!]
This gives the following result:
Showing - of Articles | Page of
The timeFilter snippet in the filter parameter is used to display documents with a current or future date only. (I’m aware of the fact that this can also be accomplished using @EVAL time(); but switching to this method doesn’t fix the placeholders-problem.)
The problem also appears on the Reflect landingpage which contains the following chunk:
<p>[+wp_month+] [+wp_year+]</p>
<p>[!Ditto? &id=`wp` &extenders=`dateFilter` &dateSource=`gigDate` &filter=`gigDate,[!timeFilter!],4` &parents=`58` &dateFormat=`%d-%m-%Y` &tpl=`GigOverviewArchive`!]</p>
When I preview the page ’month’ and ’year’ remain empty.
Is anybody familiar with this problem?