• Ditto 2.0 RC3#

  • MARKSVIRTUALDESK Reply #1, 5 years, 2 months ago

    Reply
    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

    [html]<a href="http://cvsdude.com"> <img src="http://cvsdude.com/image/cvsdude_tag.jpg"></a> [/html]


  • rthrash Reply #2, 5 years, 2 months ago

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


  • gcruz Reply #3, 5 years, 2 months ago

    Reply
    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!


  • sottwell Reply #4, 5 years, 2 months ago

    Reply
    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.


  • gcruz Reply #5, 5 years, 2 months ago

    Reply
    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?


  • MARKSVIRTUALDESK Reply #6, 5 years, 2 months ago

    Reply
    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.


  • gcruz Reply #7, 5 years, 2 months ago

    Reply
    Quote from: Mark at 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.

    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


  • MARKSVIRTUALDESK Reply #8, 5 years, 2 months ago

    Reply
    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


  • mmjaeger Reply #9, 5 years, 2 months ago

    Reply
    Great work Mark - thank you.

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

    « 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   
    


  • ZAP Reply #10, 5 years, 2 months ago

    Reply
    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...).