• Ditto 2.1 Beta 2#

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

    Reply
    Announcing the second Ditto 2.1 Beta! For the changes between this and 2.0.2 see the changelog below. Please give this a try and report any issues you encounter here. Thanks!

    Its also worth noting, the Roadmap has been updated

    Changelog
    [2007-4-10: REVISION 0000]
    [CHANGED] Indentation on getDocuments function
    [NEW] Public flag on getDocuments function (Related to #47)
    [NEW] hidePrivate parameter to interface with above (Closes #47)
    [CHANGED] $modx->recordCount to $modx->db->getRecordCount($result); (Related to #30)
    [FIXED] &depth now stops when there are no more levels (Closes #45)

    [2007-4-12: REVISION 0000]
    [CHANGED] Documentation corrections
    [CHANGED] Improved performance when getting all documents (References #40)

    [2007-4-15: REVISION 0000]
    [CHANGED] Version number to 2.0.3 SVN
    [FIXED] Category tags in RSS, ATOM, and XML output
    [FIXED] Sort order of wordpress config

    [2007-4-23: REVISION 0000]
    [FIXED] Shortags issue (Closes #51)

    [2007-4-25: REVISION 0000]
    [FIXED] Changelog typo
    [FIXED] Documentation typos
    [NEW] getParam now supports full template fetching (Closes #50)
    [NEW] Reflect now is fully template-able ala Wayfinder (Closes #42)
    [CHANGED] Version number to 2.1.SVN for both Ditto and Reflect

    [2007-5-6: REVISION 0000]
    [NEW] dateFilter now can use parameters to get the year, month, or day to filter by
    [REMOVED] Requirement for filter functions to be enclosed in classes

    [2007-5-7: REVISION 0000]
    [NEW] noResults function to handle conditions where there are no results (References #53)
    [FIXED] Pagination placeholders now are correctly blank or show zero when no results are found (Closes #53)
    [CHANGED] template->replace now accepts an associative array ofvalue of placeholders (format is no-longer part of the array)
    [NEW] Pagination is now fully templateable for 100% templateability (Closes #41)
    [FIXED] Bug with &limit < &display

    [2007-5-10: REVISION 1428]
    [REMOVED] Not needed setSortOrder function
    [CHANGED] main.template.css to debug.template.css for consistancy
    [CHANGED] Many str_replace calls replaced with template->replace (References #30)
    [REMOVED] Not needed str_replace_phx function

    [2007-5-15: REVISION 0000]
    [FIXED] hidePrivate now triggers a prefetch
    [FIXED] PHx placeholders are now detected
    ---- [REMOVED] Fix until it can be more properly implemented
    ---- [FIXED] Repaired using "a greedy plus and a negated character class"
    [FIXED] Placeholder detection is now optimized

    [2007-5-17: REVISION 0000]
    [REMOVED] PHx placeholder detection as it causes errors with other placeholder's detection
    [NEW] dateFilter now accepts a single value containing whole date (Closes #55)
    [CHANGED] Version number to 2.1.BETA

    [2007-7-06: REVISION 0000]
    [FIXED] &keywords

    [2007-07-07: REVISION 0000]
    [NEW] Reflect now passes on Ditto errors to the user
    [NEW] Reflect now natively accepts most Ditto parameters (no more &dittoSnippetParameters!)

    [2007-07-10: REVISION 0000]
    [NEW] Placeholders now work in filter arguments (Closes #60)

    [2007-07-14: REVISION 0000]
    [NEW] Sort by multiple fields just like MySQL using the new &orderBy parameter (Closes #46)

    [2007-7-15: REVISION 0000]
    [NEW] Added credits and documentation to the multiSort function
    [FIXED] Direction arguments are now correctly trimmed in &orderBy by the parseOrderByFunction

    [2007-7-15: REVISION 0000]
    [NEW] Default config and language file now always load in both Ditto and Reflect
    [FIXED] Debug console now correctly shows sortBy and sortDir
    [FIXED] &showPublishedOnly now correctly functions
    [FIXED] Removed extra whitespace from request config

    [2007-7-18: REVISION 0000]
    [FIXED] xHTML URL setting in the manager no-longer leads to double encoding (Closes #5 [FIXED] array_multisort error when no documents found

    [2007-7-21: REVISION 0000]
    [NEW] Added Bulgarian, German, Dutch, and Italian language files

    [2007-7-24: REVISION 0000]
    [NEW] Added ditto_iteration placeholder for sequence
    [NEW] Added Spanish and Persian language files
    [FIXED] Documentation headers in language files

    [2007-7-26: REVISION 0000]
    [CHANGED] Version number to 2.1.SVN
    [FIXED] Url placeholder

    [2007-8-03: REVISION 0000]
    [FIXED] Invalid orderBy array error (Closes #63)

    [2007-8-05: REVISION 0000]
    [FIXED] RSS, ATOM, and JSON issue with template::replace
    [FIXED] RSS category element indentation
    [FIXED] Custom placeholders over-writing tvs (Closes #52)
    [NEW] tplTagLinks parameter allows tagLinks placeholder to be templated (Closes #56)

    [2007-8-06: REVISION 0000]
    [NEW] Sort callbacks for user created sort functions via usort (Closes #61)
    [NEW] New addFields replaces duplicate code loops with addField
    [FIXED] Bug in userSort function

    [2007-8-07: REVISION 0000]
    [FIXED] UTF-8 dates

    [2007-8-08: REVISION 0000]
    [FIXED] tplTagLinks parameter (References #56)
    [FIXED] Removed non-used parameter from combineTags
    [FIXED] Major bug in addFields when a delimiter is used
    [NEW] Added &tagCallback parameter to allow the user to modify the tag source and how tags are parsed (Closes #6 [FIXED] Another major bug in addFields when a delimiter is not used
    [FIXED] Parsed filters glitch where fields were not being added properly
    [NEW] Reflect reset placeholder (prefixed by ID) provides a url which will show all articles (Closes #65)

    [2007-8-09: REVISION 0000]
    [NEW] Reflect now uses ditto->template->replace instead of str_replace
    [NEW] Reflect count placeholder shows the number of documents at that level (Closes #69)

    [2007-8-15: REVISION 0000]
    [NEW] dateFilterDefault allows you to set a default date filter based on the current date
    [CHANGED] Version number to 2.1.BETA2

    UPDATE: A revision with a few additional fixes has been added below as r1461.


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

    Reply
    There are quite a few interesting additions and changes in that list!


  • pbowyer Reply #3, 4 years, 5 months ago

    Reply
    I had no issues when upgrading which was good. The one thing that isn't working (and I don't know if it did in previous versions) is images embedded in RSS feeds created by Ditto. Ditto needs to rewrite the URLs and any internal links to be fully qualified, in order for them to be usable in RSS readers.

    Regards,
    Peter


  • davidm Reply #4, 4 years, 5 months ago

    Reply
    Great stuff indeed, I'll get down to upgrading a site to see how that works out and report !


  • Jako Reply #5, 4 years, 5 months ago

    Reply
    In the german language file there was a mixture of <carriage return> and <line feed> at the end of the lines - sometimes <cr><lf>, sometimes <cr>, sometimes <lf> .

    Uploaded via CuteFTP on a Windows system this causes
    Parse error: syntax error, unexpected T_VARIABLE in /.../assets/snippets/ditto/lang/german.inc.php on line 1


    The parameters &day, &month, &year of the dateFilter extender seems not to work here. They were shown in the debug console but the filter is not applied.

    Regards
    Jako


  • tuatara Reply #6, 4 years, 4 months ago

    Reply
    Quote from: Mark at Aug 15, 2007, 11:09 PM
    Please give this a try and report any issues you encounter here.

    I posted this in another thread, but I'll repeat it here, where it probably belongs.
    showPublishedOnly=`0` does not work for child documents. The fix is on line 884 (using r1460); change
    Update: sorry, this is completely bogus. Ditto works fine and my 'fix' just makes unpublished documents always visible. The real issue is simple PEBKAC ... I hadn't noticed that the Ditto chunk contained its own Ditto calls that were not asking for published articles. Sorry for the noise.


  • dflock Reply #7, 4 years, 4 months ago

    Reply
    Hi,
    This beta seems to be pretty good so far, expect for one little issue that I came across today with the next and previous links in pagination.

    They work fine until you tell Ditto to use chunks instead, at which point the link disappears - it still displays the text, but it's not a clickable link anymore.

    The chunks that I was using were very simple - I just wanted to remove the angle brackets, so the chunk was literally just the word 'previous' or 'next'.

    I ended up just removing the &lt; and &gt; from the language file for now - I know this is the wrong way to do it, but I couldn't get it working otherwise.

    Thanks,
    Dunc


  • Perrine Reply #8, 4 years, 3 months ago

    Reply
    Hello,

    I have an issue with Reflect.

    I use this call :
    [!Reflect? &dittoSnippetParameters=`parents:28|summarize:all|dateSource:pub_date|extenders:dateFilter|sortDir:DESC|sortBy:pub_date` &monthSortDir=`DESC` &groupByYears=`0` &dateSource=`pub_date` &dateFormat=`%d/%m/%y` &tplContainer=`ArchivesActu` &tplMonth=`ArchivesActuMonth`!] 


    I get no output after updating to 2.1BETA

    I changed into the code below after reading this
    [NEW] Reflect now natively accepts most Ditto parameters (no more &dittoSnippetParameters!)
    [!Reflect? &debug=`1` &parents=`28` &summarize=`all` &dateSource=`pub_date` &extenders=`dateFilter` &sortDir=`DESC` &sortBy=`pub_date` &monthSortDir=`DESC` &groupByYears=`0` &dateSource=`pub_date` &dateFormat=`%d/%m/%y` &tplContainer=`ArchivesActu` &tplMonth=`ArchivesActuMonth`!] 


    but nothing changed : I still get no output, no debug.

    Should I change something ?


  • gavro Reply #9, 4 years, 3 months ago

    Reply
    Quote from: Perrine at Oct 13, 2007, 10:50 AM
    Hello,

    I have an issue with Reflect.

    I use this call :
    [!Reflect? &dittoSnippetParameters=`parents:28|summarize:all|dateSource:pub_date|extenders:dateFilter|sortDir:DESC|sortBy:pub_date` &monthSortDir=`DESC` &groupByYears=`0` &dateSource=`pub_date` &dateFormat=`%d/%m/%y` &tplContainer=`ArchivesActu` &tplMonth=`ArchivesActuMonth`!] 


    I get no output after updating to 2.1BETA

    I changed into the code below after reading this
    [NEW] Reflect now natively accepts most Ditto parameters (no more &dittoSnippetParameters!)
    [!Reflect? &debug=`1` &parents=`28` &summarize=`all` &dateSource=`pub_date` &extenders=`dateFilter` &sortDir=`DESC` &sortBy=`pub_date` &monthSortDir=`DESC` &groupByYears=`0` &dateSource=`pub_date` &dateFormat=`%d/%m/%y` &tplContainer=`ArchivesActu` &tplMonth=`ArchivesActuMonth`!] 


    but nothing changed : I still get no output, no debug.

    Should I change something ?

    For 2.1BETA2 I had to change te wrapper placeholder to [+WRAPPER+] in tplContainer to get output (is was I believe [+archive_list+]?)


  • MARKSVIRTUALDESK Reply #10, 4 years, 2 months ago

    Reply
    A revision with a few additional fixes has been added in the first post as r1461.