May 11, 2008, 07:16 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
News:Donate to MODx: Donations
Pages: [1] 2 3 4   Go Down
  Print  
Author Topic: Ditto 2.0 RC3  (Read 17029 times)
0 Members and 1 Guest are viewing this topic.
Mark
Coding Team
*
Posts: 3,191


Ditto Developer


WWW
« on: Mar 06, 2007, 01:35 AM »

Whats new in Ditto 2?

   •   New document and TV retrieval logic for up to 4x the performance of Ditto 1 when used with large quantities of documents
   •   No more tv prefixes!
   •   PHx support
   •   Optional randomization of the results
   •   Extender architecture to allow users to expand Ditto's functionality and create their own custom placeholders
      ⁃   Request extender for functionality like DittoMachine
      ⁃   Summary placeholder has been moved to an extender
      ⁃   All tagging code is now an extender
   •   New powerful debug console for quicker troubleshooting
   •   Archives have been removed and recreated in the new snippet Reflect available in the Ditto package as reflect.snippet.inc.php
   •   QE style placeholders with edit links now possible via the [+#item+] syntax
   •   Tags now support multiple tagData sources in a comma delimited fashion and the [+tagLinks+] placeholder for a nice tag list
      ⁃   There is now a case sensitive parameter that allows you to decide if you want the tag comparison to be case sensitive or not
   •   It is now possible to have multiple Ditto calls with url based features on one page thanks to the id parameter
   •   A new config architecture allowing users to create config files in the config directory with the simple php variable syntax
   •   Added new @bindings for templates including @CODE: and @FILE: for their respective purposes
   •   New formats including XML and ATOM
   •   Parents and documents options now available, start ID deprecated (will still work though...)
   •   Added between filtering for dates for use in conjunction with Reflect based archives or custom links
   •   Hooks for custom filters and placeholders in extenders and config files
   •   The obligatory much much more...

You can download a copy at the end of this post
You can browse the all new documentation and Ditto HQ at http://ditto.modxcms.com

Enjoy!

Version control provided by the awesome guys at CVS Dude


* ditto2rc3p2.zip (53.29 KB - downloaded 502 times.)
« Last Edit: Mar 06, 2007, 07:41 PM by Mark » Logged

rthrash
Foundation
*
Posts: 8,771



WWW
« Reply #1 on: Mar 06, 2007, 01:59 AM »

Great job Mark. The documentation is really helpful and well-formatted. Cheesy
Logged

MODx is a framework that allows web professionals to turn over sites to end-users for daily maintenance without worrying. Community participation and questions are encouraged, especially when you help us help you, read the wiki, and review snippet parameters – even if you have to look at the source. Searching the forums helps, too.
Ryan Thrash
MODx Co-Founder
Principal @ Collabpad
work productively.
work intelligently.
work together.
gcruz
Member
**
Posts: 98


« Reply #2 on: Mar 06, 2007, 02:03 AM »

This tar seems to crash stuffit on my Mac. Any possibility you can provide it as a zip?

Looking forward to trying this out and thanks for all the hard work!
Logged
sottwell
Documentation Team
*
Posts: 7,046



WWW
« Reply #3 on: Mar 06, 2007, 02:06 AM »

I get a lot of stuff crashing stuffit on my mac... I downloaded EZ 7Z and have never had any problems with it. It's just a front-end to the command line gzip etc, so it's pretty solid.
Logged

Live site! sottwell.com - Manager user: guest, password: guestuser
MODx Templates - SkinGraft ready! Loripsum
gcruz
Member
**
Posts: 98


« Reply #4 on: Mar 06, 2007, 02:11 AM »

I was going through your documentation (very comprehensive!) and I was wondering if there is an example on how to use the tagging feature explained here:

http://ditto.modxcms.com/files/assets/snippets/ditto/extenders/tagging-extender-inc-php.html

I was trying this with not much success:
http://wiki.modxcms.com/index.php/Category_Tagging_with_Ditto

Is 2.0 different?
Logged
Mark
Coding Team
*
Posts: 3,191


Ditto Developer


WWW
« Reply #5 on: Mar 06, 2007, 02:13 AM »

See the 0.9.6 demo content page "Blog" for a tagging example. After 2.0 is final I will release the screencast showing how to do it step by step.
Logged

gcruz
Member
**
Posts: 98


« Reply #6 on: Mar 06, 2007, 02:19 AM »

See the 0.9.6 demo content page "Blog" for a tagging example. After 2.0 is final I will release the screencast showing how to do it step by step.

I looked here but didn't see any tags?
http://modxcms.com/blog.html

I also did a forum search for 0.9.6 and got
Your query was not specific enough. Try using larger words, or less common phrases

Tried the EZ 7z app above and got this error:
7-Zip (A) 4.42  Copyright (c) 1999-2006 Igor Pavlov  2006-05-14
p7zip Version 4.42 (locale=C,Utf16=off,HugeFiles=on,2 CPUs)

Processing archive: /Users/gcruz/Desktop/ditto2rc3.tar

Extracting  trunk.tar
ERROR: E_FAIL
« Last Edit: Mar 06, 2007, 02:21 AM by gcruz » Logged
Mark
Coding Team
*
Posts: 3,191


Ditto Developer


WWW
« Reply #7 on: Mar 06, 2007, 02:22 AM »

The MODx site is not running 0.9.6 nor is it running the demo content. You can get 0.9.6 RC1 from here: http://modxcms.com/beta.html
Logged

mmjaeger
Sr. Member
****
Posts: 373


« Reply #8 on: Mar 06, 2007, 02:33 AM »

Great work Mark - thank you.

I'm getting an error when opening the debug window:

Code:
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
 
PHP error debug
  Error:  wordwrap() expects parameter 1 to be string, array given   
  Error type/ Nr.:  Warning - 2   
  File:  C:\Documents and Settings\Marco M. Jaeger\My Documents\My Web Sites\www\cms\modx\assets\snippets\ditto\classes\debug.class.inc.php   
  Line:  172   
  Line 172 source:  $v = wordwrap($v,100,"\r\n",1);   
 
Parser timing
  MySQL:  0.0175 s (21 Requests)
  PHP:  0.1382 s   
  Total:  0.1557 s   
Logged
ZAP
Testers
*
Posts: 1,289



« Reply #9 on: Mar 06, 2007, 02:40 AM »

Wow. Ditto just keeps getting better and better. I need to spend a weekend with it learning all the new tricks...

I just installed 2.0 RC3 and I'm having a very tough time getting the filter parameter to work. It seems that if I add any filter at all (including &filter=`id,999,1` and any number of others I've tried) I get the no documents found text. If I leave the filter parameter out I get results for all the documents in my parent folder.

What might I be doing wrong? I tried to use the debug console but I received a ksort parse error in the popup (with or without the filter param), which may be because this is 0.9.5 RC1. The filter class looks about the same as in previous versions (except for minor changes in syntax - thanks for the honorable mention btw...).
Logged

"Things are not what they appear to be; nor are they otherwise." - Buddha

"Well, gee, Buddha - that wasn't very helpful..." - ZAP

Useful MODx links: documentation | wiki  | forum guidelines  | bug reports  | info you should include with your post | commercial support options
Mark
Coding Team
*
Posts: 3,191


Ditto Developer


WWW
« Reply #10 on: Mar 06, 2007, 02:54 AM »

@mmjaeger: Do you have $stopOnNotice set to true in the index.php file?
Anyways, try adding:
Code:
if (!is_string($v)) {
$v = var_export($v,true);
}

Before the first $v = line in the debug class file and see if that helps


@ZAP: &filter=`id,999,2` would be the filter to not remove anything. Saying 1 would mean only include id==999.

I only test on the latest production release (at the moment 0.9.5) so running RC1 could be the problem. Also the parseFilters function changed drastically in Ditto 2.

Found the problem. Will commit the fix to svn soon.

What exactly was the ksort error?
« Last Edit: Mar 06, 2007, 02:59 AM by Mark » Logged

Mark
Coding Team
*
Posts: 3,191


Ditto Developer


WWW
« Reply #11 on: Mar 06, 2007, 03:07 AM »

Ok, the attachment above has the filters patch...

Quote
[FIXED] wordwrap non-string warning
[FIXED] filter variable overwrite resulting in all filters failing
Logged

Perrine
Moderators
*
Posts: 1,643



WWW
« Reply #12 on: Mar 06, 2007, 03:12 AM »

Hi there,

Seems some guys have problem with .tar, here is the .zip with the last fix

Code:
[FIXED] wordwrap non-string warning
[FIXED] filter variable overwrite resulting in all filters failing

Mark, if you prefer give your version in .zip, don't hesitate to moderate my post Wink

* ditto2rc3p1.zip (52.36 KB - downloaded 406 times.)
Logged

Nouveau sur MODx ? ||
Recherche
Communauté FR
Documentation FR
Réalisations sous MODx
Webolution
Entreprise AGS
J'aurais dû lui dire...

Atelier d'architecture Gambino
Déco'In : l'idée déco qu'il vous faut
HistWar : jeu de stratégie napoléonien

Ma config : MODx 0.9.6.2 || Apache 2.2.8 || PHP 5.2.5 || MySQL 5.0.45
Mark
Coding Team
*
Posts: 3,191


Ditto Developer


WWW
« Reply #13 on: Mar 06, 2007, 03:26 AM »

Drat, the last fix didn't correct the warning....

Here is the proper change (now in SVN)
Code:
if (!is_string($value)) {
$value = var_export($value,true);
}
Logged

doze
Coding Team
*
Posts: 2,901


....Boom!


« Reply #14 on: Mar 06, 2007, 03:30 AM »

Very nice Ditto HQ! Good job Mark! Cheesy
Logged

MODxWiki || Please, list wiki worthy material here!
Pages: [1] 2 3 4   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!