We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23050
    • 1,842 Posts
    Quote from: edipo at Nov 29, 2006, 12:27 PM

    Thanks! It solve... how can i show only the archives and not also the news?

    With parameter &summarize=`0` wink
    • Um... I mean in the archive... er, the reflection? What I mean is, I want the Ditto to show the number of summaries I want it to show, then the Reflect shows the archive of the stuff not already shown! As it is, it shows the articles already being displayed by the Ditto summaries in the archive list.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 23050
        • 1,842 Posts
        Sorry, I was asking to Edipo.

        In reflect parameters, there is :
        $full = isset($full)? $full : 0;
        	// show all posts (to total) in  instead of remaining posts


        I thought it was this parameter to configure that but when I try, it always shows up all articles in archives, even if I put &summarize=`3`
          • 8471
          • 333 Posts
          Quote from: Perrine at Nov 29, 2006, 01:14 PM

          With parameter &summarize=`0` wink
          If I set &summarize=`0` I receive a parse error
          « MODx Parse Error »
          MODx encountered the following error while attempting to parse the requested resource: 
          « PHP Parse Error » 
            
          PHP error debug 
            Error:  Division by zero   
            Error type/ Nr.:  Warning - 2   
            File:  C:\sito\assets\snippets\ditto\classes\ditto.class.inc.php   
            Line:  571   
            Line 571 source:  $totalpages = ceil($total / $summarize);    
            
          Parser timing 
            MySQL:  0.0105 s s (0 Requests) 
            PHP:  0.4592 s s   
            Total:  0.4697 s s   
          
            Sorry for my bad English grin
            • 16879
            • 87 Posts
            Excuse my stupidity but I can’t find any reference to Reflect anywhere else on this site/forums. Can anyone point me in the direction of a summary for this snippet please?
            • Quote from: Marschant at Nov 21, 2006, 10:15 AM

              Here’s my call:

              [!ditto?startID=2&placeholder=`ditto_object`&multiLevel=1&descendantDepth=0&hideFolders=1&sortBy=`createdon`&sortDir=`DESC`&dateFormat=`%d %B %Y`&summarize=0!]
              <div class="content" id="reflect_archivelist">[!reflect!]</div>


              Output seen here: http://www.swellguys.co.za/news/archive.html

              Hi!
              What version of MODx and what version of ditto do you have?

              I tried it on Ditto 2.0 RC and MODx 0.9.5 but with no luck sad

              Can you explain a lil’ more detailed how did U get this output? smiley
                BASE - Web Design Studio
                MODX Ambassador

                Website
                • 18397
                • 3,250 Posts
                Take a look at the example in MODx 0.9.6 RC1