Dec 04, 2008, 12:41 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Search via SMF or Google: modx forums all of modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
News:Donate to MODx: Donations
Pages: [1]   Go Down
  Print  
Author Topic: big problems with Ditto (not for beginer)  (Read 1870 times)
0 Members and 1 Guest are viewing this topic.
SamZ
Sr. Member
****
Posts: 401


всегда ищу работу :-)


WWW
« on: May 19, 2007, 03:03 AM »

Hello
I have two ditto calls on tha same page.
1.[!Ditto? &summarize=`1`  &tpl=`portf_chank` &paginate=`1`!] - i use it for gallery
2.[!Ditto? &parents=`3` &tpl=`li` &debug=`1` &paginate=`0` &summarize=`50` &depth=`2` &filter=`tvclients,[*clients*], 1|pagetitle,[*pagetitle*],2` !] - for filtering priject with tha same client

On first (start=0) page everything is great
On Second (start=2) I don't have 1 value (in ditto (2))
on 3d (start=2) I don't have all value.

http://shop.fast-site.net/9.html live sample

* pack.zip (4.01 KB - downloaded 88 times.)
« Last Edit: May 19, 2007, 03:44 AM by SamZ » Logged

[MODULE] CSV IMPORT :: модуль для добавления больших каталогов, из файлов с разделителями, с сохранением древовидной структуры. russian english


[FAQ] MODX 096
(основные проблемы и способы их решения)
zi
MODx Special Forces /
Administrator
*
Posts: 3,017


May Peace Be On You


WWW
« Reply #1 on: May 19, 2007, 04:09 AM »

Hi Samz,

What version of Ditto are you using? Moreover if I am right Ditto doesn't interpret [*xyz*] in its call.

For more information on Ditto Filtering, please read: http://ditto.modxcms.com/tutorials/basic_filtering.html

Hope it helps.

regards.
Logged

“Internet Explorer’s CSS rendering: WYSIWTF”. — someone genius
--------------------------------------------------
SamZ
Sr. Member
****
Posts: 401


всегда ищу работу :-)


WWW
« Reply #2 on: May 19, 2007, 04:57 AM »

What version of Ditto are you using?
I am using 096 RC3 with ditto 202


Moreover if I am right Ditto doesn't interpret [*xyz*] in its call.
It works on http://shop.fast-site.net/9.html

For more information on Ditto Filtering, please read: http://ditto.modxcms.com/tutorials/basic_filtering.html

I know everything about with documentation.  Smiley
Thanks for trying help.
Logged

[MODULE] CSV IMPORT :: модуль для добавления больших каталогов, из файлов с разделителями, с сохранением древовидной структуры. russian english


[FAQ] MODX 096
(основные проблемы и способы их решения)
heliotrope
Coding Team
*
Posts: 2,447


WWW
« Reply #3 on: May 19, 2007, 05:04 AM »

Hi,

not sure to understand your pb but You should add the id parameter to your ditto call.
the start will be applied on the call from which it's been activated.

:-)


1.[!Ditto? &id=`call1` &summarize=`1`  &tpl=`portf_chank` &paginate=`1`!] - i use it for gallery
2.[!Ditto? &parents=`3` &tpl=`li` &debug=`1` &paginate=`0` &summarize=`50` &depth=`2` &filter=`tvclients,[*clients*], 1|pagetitle,*pagetitle*],2` !]

and then add the call1 prefix to your pagination placeholder.

P.S: there is an extra space in your filter ", 1". You should remove it.
Logged

SamZ
Sr. Member
****
Posts: 401


всегда ищу работу :-)


WWW
« Reply #4 on: May 19, 2007, 05:53 AM »

not sure to understand your pb but You should add the id parameter to your ditto call.
the start will be applied on the call from which it's been activated.

it's don
1.[!Ditto? &id=`call1` &summarize=`1`  &parents=`[*id*]` &tpl=`portf_chank` &paginate=`1`!] - i use it for gallery
2.[!Ditto? &parents=`3` &tpl=`li` &debug=`1` &paginate=`0` &summarize=`50` &depth=`2` &filter=`tvclients,[*clients*],1|pagetitle,*pagetitle*],2` !]
P.S: there is an extra space in your filter ", 1". You should remove it.
it's don

and then add the call1 prefix to your pagination placeholder.
I did't understood how to do it.

I am using [+pages+] placeholder for paginate

Logged

[MODULE] CSV IMPORT :: модуль для добавления больших каталогов, из файлов с разделителями, с сохранением древовидной структуры. russian english


[FAQ] MODX 096
(основные проблемы и способы их решения)
heliotrope
Coding Team
*
Posts: 2,447


WWW
« Reply #5 on: May 19, 2007, 05:57 AM »

Quote
I am using [+pages+] placeholder for paginate

Ditto adds an underscore to the id so [+call1_pages+] should do the trick.

:-)
Logged

SamZ
Sr. Member
****
Posts: 401


всегда ищу работу :-)


WWW
« Reply #6 on: May 19, 2007, 06:12 AM »

Code:
[!Ditto? &summarize=`1` &parents=`[*id*]`  &tpl=`portf_chank` &paginate=`1`!]

<div class="pages">
<span class="left">[+call1_pages+]<span class="ditto_currentpage"> </span>
</span>

<span class="right"><a href="[*pic_link*]" title="[*pic_title*]">посмотреть сайт</a></span> </div> 

<div class="client">
<h1>[*pagetitle*]</h1>
<h2>Клиент: [*clients*]
</h2>
</div>
<div id="col1">
[*content*]

<p class="teg">Теги: {{chank_tags}}</p>         
</div>

<div id="col2">
<strong>Eщё проекты этого клиента</strong>
<ul>

[!Ditto? &parents=`3` &tpl=`li` &debug=`1` &paginate=`0` &summarize=`50` &depth=`2` &filter=`tvclients,[*clients*],1|pagetitle,[*pagetitle*],2` !]
</ul>

Am I right?
I don't  have pages in whis case. But then i go to 9.html&start=1 result is tha same
Logged

[MODULE] CSV IMPORT :: модуль для добавления больших каталогов, из файлов с разделителями, с сохранением древовидной структуры. russian english


[FAQ] MODX 096
(основные проблемы и способы их решения)
heliotrope
Coding Team
*
Posts: 2,447


WWW
« Reply #7 on: May 19, 2007, 06:15 AM »

Could you please provide your ditto version ?


If you are running Ditto 2 you don't have to prefix the tv anymore.

So you filter should be &filter=`clients,....`

:-)
Logged

SamZ
Sr. Member
****
Posts: 401


всегда ищу работу :-)


WWW
« Reply #8 on: May 19, 2007, 11:28 AM »

Could you please provide your ditto version ?
If you are running Ditto 2 you don't have to prefix the tv anymore.
So you filter should be &filter=`clients,....`
Ditto 202 MODX 096 rc3 &filter=`clients,....` or &filter=`tvclients,....` it does not matter.

You can see my ditto   "Debug Console" ob with pages
"Debug Console"  http://shop.fast-site.ru/9.html?start=1&amp;ditto_debug=open

http://shop.fast-site.ru/9.html&start=0 - hear everything works great.
http://shop.fast-site.ru/9.html&start=1 - mis 1 result
http://shop.fast-site.ru/9.html&start=2 - ...
filtering result is tha same  "prefetch data" and Selected IDs
but
"Retreived data" is different

Thanks everybody.

Correct call in my case is:

[!Ditto? &summarize=`1` &id=`call1` &parents=`[*id*]`  &tpl=`portf_chank` &paginate=`1`!]

<div class="pages">
<span class="left">[+call1_pages+]<span class="ditto_currentpage"> </span>
</span>


« Last Edit: May 19, 2007, 01:16 PM by SamZ » Logged

[MODULE] CSV IMPORT :: модуль для добавления больших каталогов, из файлов с разделителями, с сохранением древовидной структуры. russian english


[FAQ] MODX 096
(основные проблемы и способы их решения)
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP

Copyright © 2005-2008 MODxCMS, All rights reserved. Contact Us
Styles by ziworks.com

Powered by SMF 1.1.4 | SMF © 2005, Simple Machines LLC

Valid XHTML 1.0! Valid CSS!