We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18397
    • 3,250 Posts
    [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]
      • 6726
      • 7,075 Posts
      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
        • 15361
        • 3 Posts
        Hey guys! What code i need to past for display the autorization and registration ??
        Thank you !
          • 10174
          • 15 Posts
          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!
            • 2299
            • 62 Posts
            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 !
              • 16183
              • 1,390 Posts
              Good job Mark! Thanks grin

              /k
                • 18397
                • 3,250 Posts
                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.
                  • 2299
                  • 62 Posts
                  Oh, ok, I didn’t understand that.

                  It works fine, now, thanks a lot !
                    • 27310
                    • 18 Posts
                    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.
                      • 24401
                      • 2 Posts
                      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