New Community Forums are coming. Watch this space for news.
Subscribe: RSS
  • MARKSVIRTUALDESK Reply #1, 11 years ago
    [html]Ditto 2.1 is an important update and includes many new features and bugfixes. <h3>Cool new features</h3><ul><li>Sort by multiple fields like MySQL</li><li>Full template-ability in Reflect, tagLinks, &noResults, and the pagination placeholders</li><li>hidePrivate parameter to show or hide private documents from public view</li><li>Reset placeholder to reset Reflect's filtering of a Ditto call</li><li>month_numeric placeholder in dateFilter to display a numeric representation of the month</li><li>ditto_iteration placeholder for the sequence</li><li>Filter comparisons now are optionally case sensistive</li><li>Server time offset now respected consistantly</li><li>Improved performance when getting all documents</li><li>Added Bulgarian, German, Dutch, Spanish, Persian, and Italian language files</li></ul><h3>Important bug fixes:</h3><ul><li>Security fix involving XSS in Reflect</li><li>xHTML setting in the manager breaks Ditto output</li><li>PHP short-tags issue</li><li>Category element improperly formatted in Ditto RSS output</li><li>Updated time does properly display in Ditto ATOM output</li><li>Items published at 00:00 on the first day of a month are excluded by dateFilter</li><li>&depth now stops when there are no more levels to go</li><li>Sort order of wordpress config</li><li>Pagination placeholders now are correctly blank or show zero when no results are found</li><li>Issue when &limit < &display</li></ul><h3>New developer goodies</h3><ul><li>Callbacks for custom sorts, tagging (A true API is coming soon!)</li><li>dateFilter now can accept a single get querystring parameter</li><li>QE links can use custom sources</li><li>getParam now supports full template fetching</li></ul>Head on over to Ditto HQ for the usual links <a href="http://modxcms.com/ditto" title="Support Site">http://modxcms.com/ditto</a><h3>Thanks</h3> Thanks to the awesome guys and gals at CVS Dude for their SVN version control service.

    <a href="http://cvsdude.com" alt="CVSDude : CVS, Subversion, Trac source control and project management hosting"> <img src="http://cvsdude.com/image/cvsdude_tag.jpg" border="0" /></a><h3>Get your copy</h3><img src="http://www.modxcms.com/assets/images/download_manager.png" alt="download icon" /><a href="http://modxcms.com/Ditto-487.html">Ditto</a>[/html]
      [html]<div><div style="float:left;"><a href="http://modxcms.com/Ditto-487.html" target="_blank"><img src="http://modxcms.com/assets/images/ditto.gif" alt="" border="0"></a></div><div style="float:left; padding: 0 5px 0 5px; border-left: 2px solid #ddd; margin-left: 5px;"><a style="display:block;"href="http://modxcms.com/ditto_docs.html">Documentation</a><a style="display:block;" href="http://modxcms.com/ditto_trac.html">TRAC (Bugtracker)</a><a style="display:block;"href="http://modxcms.com/forums/index.php/board,180.0.html">Forum</a><a style="display:block;"href="http://modxcms.com/forums/index.php/topic,13348.0.html">How to get help</a></div><div style="float:left; padding: 0 5px 0 5px; border-left: 2px solid #ddd;"><a style="display:block;"href="http://modxcms.com/ditto_wiki.html">User Wiki</a><a style="display:block;" href="http://modxcms.com/ditto_credits.html">Credits</a><a style="display:block;"href="http://modxcms.com/ditto_svn.html">SVN Server</a><a style="display:block;"href="http://modxcms.com/ditto">Ditto HQ</a></div><div style="float:left; padding: 0 5px 0 5px; border-left: 2px solid #ddd;"><a style="display:block;"href="http://modxcms.com/ditto_stable_download.html"><strong><span style="color:#CC0000;">Stable Download</span></strong></a><a style="display:block;"href="http://modxcms.com/ditto_download.html"><strong><span style="color:#CC0000;">Development Download</span></strong></a></div><div style="clear: both;"></div></div>[/html]
    • Great release Mark grin

      I especially will enjoy the "Sort by multiple fields like MySQL" and "Filter comparisons now are optionally case sensitive" bit smiley

      Off to downloading it !
        .: COO - Commerce Guys - Community Driven Innovation :.


        MODx est l&#39;outil id
      • Hey guys! What code i need to past for display the autorization and registration ??
        Thank you !
        • I did upgrade 2.0.2. to 2.1, but now my ditto call is no longer working.
          The result in 2.1 is the path to myserver/assets/snippets/ditto/lang/english.inc.php"
          What do I have to change?

          Solved:
          Sorry, I copied the ditto folder in the wrong place!
          • I’m trying to use the ditto_iteration placeholder, but it doesn’t seem to work.

            Is this how it’s supposed to be used ?

            extraction_tableau_titre_image (Ditto call) :

            <table>
            [[Ditto? &parents=`[*id*]` &display=`all` &sortDir=`ASC` &sortBy=`menuindex` &tpl=`tpl_tableau_titre_image` &showPublishedOnly=`1`]] 
            </table>


            tpl_tableau_titre_image (template) :

            [+phx:if=`[+ditto_iteration+]`:is=`1`:then=`
            <tr>
            <td> 
            <a href="[~[+id+]~]"><img src="[+image_document+]"/></a>
            <a href="[~[+id+]~]">[+pagetitle+]</a>
            </td>
            `:else=` `+]
            
            [+phx:if=`[+ditto_iteration+]`:is=`2`:then=`
            <td> 
            <a href="[~[+id+]~]"><img src="[+image_document+]"/></a>
            <a href="[~[+id+]~]">[+pagetitle+]</a>
            </td>
            `:else=` `+]
            
            [+phx:if=`[+ditto_iteration+]`:is=`0`:then=`
            <td> 
            <a href="[~[+id+]~]"><img src="[+image_document+]"/></a>
            <a href="[~[+id+]~]">[+pagetitle+]</a>
            </td>
            </tr>
            >`:else=` `+]


            Thanks for any help !
            • Good job Mark! Thanks grin

              /k
              • Ditto iteration simply counts up from 0 for each article included in the results. So if you had three results, the placeholder would be 0 first, 1 second, and 2 third.
                  [html]<div><div style="float:left;"><a href="http://modxcms.com/Ditto-487.html" target="_blank"><img src="http://modxcms.com/assets/images/ditto.gif" alt="" border="0"></a></div><div style="float:left; padding: 0 5px 0 5px; border-left: 2px solid #ddd; margin-left: 5px;"><a style="display:block;"href="http://modxcms.com/ditto_docs.html">Documentation</a><a style="display:block;" href="http://modxcms.com/ditto_trac.html">TRAC (Bugtracker)</a><a style="display:block;"href="http://modxcms.com/forums/index.php/board,180.0.html">Forum</a><a style="display:block;"href="http://modxcms.com/forums/index.php/topic,13348.0.html">How to get help</a></div><div style="float:left; padding: 0 5px 0 5px; border-left: 2px solid #ddd;"><a style="display:block;"href="http://modxcms.com/ditto_wiki.html">User Wiki</a><a style="display:block;" href="http://modxcms.com/ditto_credits.html">Credits</a><a style="display:block;"href="http://modxcms.com/ditto_svn.html">SVN Server</a><a style="display:block;"href="http://modxcms.com/ditto">Ditto HQ</a></div><div style="float:left; padding: 0 5px 0 5px; border-left: 2px solid #ddd;"><a style="display:block;"href="http://modxcms.com/ditto_stable_download.html"><strong><span style="color:#CC0000;">Stable Download</span></strong></a><a style="display:block;"href="http://modxcms.com/ditto_download.html"><strong><span style="color:#CC0000;">Development Download</span></strong></a></div><div style="clear: both;"></div></div>[/html]
                • Oh, ok, I didn’t understand that.

                  It works fine, now, thanks a lot !
                  • If I want to use DITTO without FriendlyURLs and my site has to be called with an ID (f.e. "index.php?id=58") then it displays nothing !

                    I don’t know what I have to do !

                    I’ve installed the Version "2.1.0" and before I had "2.0.2" and problems with the XHTML-URLs ... Because of this I changed, but now, I have to change back till you give me the fix ...
                    But now I have the problem that my page is not XHTML-Valide...

                    If I call My main-Page with the ditto-Embled "index.php" it works good.
                    • Hi,

                      i have two problems with Ditto.

                      First i can´t use "german" as language-parameter. the result is a blank site. any other language-value is working.
                      Second i can´t use the content-placeholder in my template. is there a known bug?
                      <-- my fault. the site which runs the snippet call is included in this call. so i had a loop.
                      thanks for help.

                      jochen