Topic: Ditto 2.1 Beta 2  (Read 10692 times)

Pages: [1]   Go Down

#1: 15-Aug-2007, 11:09 PM

Emeritus
Mark
Posts: 3,250

Ditto Developer

WWW
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
Quote
[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 of name=>value 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 #58)
[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 #68)
[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.

* ditto_r1455.tar.gz (56.18 KB - downloaded 473 times.)
* ditto_r1461.tar.gz (56.58 KB - downloaded 436 times.)
« Last Edit: 12-Nov-2007, 09:10 PM by Mark »

#2: 16-Aug-2007, 12:38 AM

Testers

ZAP
Posts: 1,620

There are quite a few interesting additions and changes in that list!
"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  | bugs & requests  | info you should include with your post | commercial support options

#3: 30-Aug-2007, 09:00 AM


Peter Bowyer
Posts: 170

MODx consultant & entrepreneur

WWW
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
MAPLEDESIGN
MODx development
We love MODx web design and custom development.
Check out our Southampton web design services

#4: 30-Aug-2007, 11:44 AM

Marketing & Design Team

davidm
MODx evangelist
Posts: 7,076

The best way to predict the future is to invent it

WWW
Great stuff indeed, I'll get down to upgrading a site to see how that works out and report !
.: nodeo.net : Pour un web libre, moderne et ouvert ! :: david-molliere.net : Suivez en "live" mes expérimentations et billets sur les CMS et autres applications web :.

*** Forums modxcms.fr Participez à l'élaboration du site MODx francophone ! ***

! Nouveau !  En live, ne manquez pas les news de modxcms.fr sur Twitter   ! Nouveau !

MODx est l'outil idéal pour les developpeurs et webdesigners qui cherchent un framework de gestion de contenu hautement flexible et performant, tout en étant simple d'accès pour les utilisateurs finaux.

Config : Apache 2.2.8 - MySQL 5.0.67 - PHP 5.2.8 | Debian 4.0 (Etch)

Réalisations sous MODx : | pargade-notaires.fr | soleil.info | gican.asso.fr | michelez-notaires.com | amadom.gerondicap.com | jocelyne-violet.net

#5: 31-Aug-2007, 12:41 AM

Jako
Posts: 109

WWW
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
Code:
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
« Last Edit: 23-Sep-2007, 01:22 AM by Jako »

#6: 22-Sep-2007, 09:16 PM

Support Subscriber

tuatara
Posts: 76

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.
« Last Edit: 4-Oct-2007, 04:21 AM by tuatara »

#7: 27-Sep-2007, 06:11 PM


dflock
Posts: 79

WWW
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

#8: 13-Oct-2007, 10:50 AM

Moderators

Perrine
Posts: 1,776

WWW
Hello,

I have an issue with Reflect.

I use this call :
Code:
[!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
Quote
[NEW] Reflect now natively accepts most Ditto parameters (no more &dittoSnippetParameters!)
Code:
[!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 ?
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 deco qu'il vous faut
HistWar : jeu de stratégie napoléonien

Ma config : MODx 0.9.6.3 / 1.0 || Apache 2.2.14 || PHP 5.2.11 || MySQL 5.0.45 || Debian 4.0 (Etch)

#9: 1-Nov-2007, 06:13 PM

gavro
Posts: 27

WWW
Hello,

I have an issue with Reflect.

I use this call :
Code:
[!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
Quote
[NEW] Reflect now natively accepts most Ditto parameters (no more &dittoSnippetParameters!)
Code:
[!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+]?)

#10: 12-Nov-2007, 09:11 PM

Emeritus
Mark
Posts: 3,250

Ditto Developer

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

#11: 14-Nov-2007, 06:25 PM

lance.mignot
Posts: 4

Hi,

for some reason, i'm getting "unexpected end of archive" errors with the 2 attachments, anything I'm doing wrong? I've downloaded the 2 files in both IE7 and Firefox2+ and in both cases the archive seems corrupt.

Cheers!

#12: 14-Nov-2007, 06:29 PM

Emeritus
Mark
Posts: 3,250

Ditto Developer

WWW
Mac or PC with what unzip software?

#13: 14-Nov-2007, 11:39 PM

Coding Team

sottwell
Posts: 12,261

WWW
Just tried it with Mac and Stuffit, worked fine.
How MODx Works
Log in to an Evo Manager username guest, password guestuser.

#14: 20-Nov-2007, 08:36 AM

gavro
Posts: 27

WWW
There is something wrong with the last uploaded file (or with the forumsw). I've tried to download it with Opera and Konqueror. The file from Opera had a bed ending, Konqueror reported during download the file has a bad ending.
Only when downloading with Firefox it succeeds...

#15: 3-Jan-2008, 03:38 PM

Jako
Posts: 109

WWW
I think it would be better to set the month-placehoder of the dateFilter-Extender not to text representation of the month and leave it numeric.

Code:
197: $modx->setPlaceholder($dittoID."month",$month);

So it could be modified by phx:math and translated later by phx:date.

Or have another placeholder like month_num.
« Last Edit: 4-Jan-2008, 03:36 AM by Jako »

#16: 4-Jan-2008, 03:38 AM

Emeritus
Mark
Posts: 3,250

Ditto Developer

WWW
Changing that placeholder would break backwards compatibility. However, adding something along the lines of month_numeric, a numeric version of month, makes sense. Please file a Ditto ticket for this (see link in signature)

#17: 4-Jan-2008, 04:15 AM

Jako
Posts: 109

WWW
Please file a Ditto ticket for this (see link in signature)
Done ...

BTW: Did you get my response for my &dateFilterSource=`params` problem?

#18: 24-Jan-2008, 07:51 AM

lance.mignot
Posts: 4

Mac or PC with what unzip software?

PC, tried with winrar, total commander's built-in tgz unarchiver, winzip... no joy. I tried again today and still doesn't work.

Haven't tried with mac, will do so.

Cheers!
Pages: [1]   Go Up
0 Members and 1 Guest are viewing this topic.