Hi everybody,
i have a very urgent issue:
i have a Ditto call with this filter:
&filter=`tvazienda, 507, 1` ----> work great
&filter=`tvazienda, id, 1` ----> Not work :-(
&filter=`tvazienda, [+id+], 1` ----> Not work :-(
&filter=`tvazienda, [*id*], 1` ----> Not work :-(
If, out of ditto call, i write [*id*] in front end showed 507 (page id).
How can i solve this problem?
Modx evo version: 1.0.4 - ditto: 2.1.0
thx
"Destiny is not a matter of chance, it's a matter of choice"
Hi,
Interesting question... I’m not sure, but how about trying this:
&filter=`tvazienda, [~id~], 1`
Cheers, Dave
Thx for the reply.
Unfortunately it’s not work.
i’m desperate.
"Destiny is not a matter of chance, it's a matter of choice"
-
☆ A M B ☆
- 24,524 Posts
Is your Ditto call cached or uncached? Try it uncached with the [*id*] tags.
I tried to put the ditto call UnCacheable [! ... !] and also the page not suitable in cache....
the [*id*] still not work..
[!Ditto? &parents=`162` &showPublishedOnly=`1` &tpl=`UltimiProdotti` &orderBy=`createdon DESC` &depth=`0` &hideFolders=`1` &debug=`1`
&filter=`tvazienda, [*id*] , 1` !]
"Destiny is not a matter of chance, it's a matter of choice"
thx KP.
Is very very strange:
Ditto Call:
[!Ditto? &parents=`162` &depth=`0` &hideFolders=`1` &filter=`template,7,1|
azienda,id,1` &debug=`1` &tpl=`UltimiProdotti` &showPublishedOnly=`1` &orderBy=`createdon DESC` !]
The debug console has
one Retreived data, but in the page still "No document found".
see the Debug Console:
http://www.prodotti-edilizia.com/ditto2.1.0_debug_doc507.html
If i change my ditto call in this way:
[!Ditto? &parents=`162` &depth=`0` &hideFolders=`1` &filter=`template,7,1|
azienda,507,1` &debug=`1` &tpl=`UltimiProdotti` &showPublishedOnly=`1` &orderBy=`createdon DESC` !]
The debug console is same, but in the page is showed the correct item.
how can this happen?
"Destiny is not a matter of chance, it's a matter of choice"
Yeahhhhhh!!!!!!
thx PK Now this ditto call work:
[!Ditto? &parents=`162` &depth=`0` &hideFolders=`1` &filter=`template,7,1|azienda,[*id*],1` &debug=`1` &tpl=`UltimiProdotti` &showPublishedOnly=`1` &orderBy=`createdon DESC` !]
Many many thx!!!!!!
enjoy!!
"Destiny is not a matter of chance, it's a matter of choice"