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
    You will need to have a seprate Ditto call creating the Reflect archives on your target page until I complete Reflect. It will eventually be able to make its own Ditto calls but until then....
      • 26435
      • 1,193 Posts
      Quote from: Mark at Dec 02, 2006, 10:20 PM

      You will need to have a seprate Ditto call creating the Reflect archives on your target page until I complete Reflect. It will eventually be able to make its own Ditto calls but until then....
      Right, but what I am saying is that when you select a month archive, all the other months disappear. Is this because Reflect can only search what ditto outputs? Is there a way around this?

      -sD-
        Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
        All of the above... in no specific order.


        I send pointless little messages
        • 18397
        • 3,250 Posts
        Exactly, Ditto can only search what Ditto sends it ATM. And Ditto sends the documents AFTER the filter not before the filter.
          • 26435
          • 1,193 Posts
          Right on man!
          Thanks for the quick reply.

          That will be rad when [[Reflect]] can initiate it’s own ditto calls. laugh

          -sD-
            Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
            All of the above... in no specific order.


            I send pointless little messages
            • 26435
            • 1,193 Posts
            I found a possible bug in reflect. I am posting here to see if anyone else is experiencing this. At the same time, I am searching through the Reflect snippet to see If I can offer a fix.

            The problem I am having is when I click on a Reflect archive (mine are ordered by month), It never shows any items that were created on the last day of the month. For example, I have blog entries on May 31st and November 30th (both on the last day of their respective months, but the actual digit is different). These Items are displayed normally in my ditto call, but when I click the Reflect link for May 2006, all the items show up except this one. Same for the item dated on November 30th. As a test, I used doc manager module and changed the created on date and the published on date to May 30th, and it was listed just fine in Reflect. Funny think is, it just sort of drops off the face of the planet if it is the last day of the month. It doesn’t go to the month it is supposed to and it doesn’t get listed in the next month’s items either.

            -sD-
            Dr. Scotty Delicious, Scientist.
              Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
              All of the above... in no specific order.


              I send pointless little messages
              • 18397
              • 3,250 Posts
              The code that filters which items to show is in the Ditto classes/filter.class.inc.php file under the date case.

              I’ll take another look at that code as soon as I get a chance.
                • 16885
                • 255 Posts
                I’ve upgraded my Ditto version as well this morning, but I’m experiencing some oddness I can’t find on the forum here;
                I’m using the Ditto call
                [[Ditto? &startID=`2` &summarize=`3` &trunc=`0` &displayArchive=`0` &hideFolders=`0` &mode=`development` &dateFormat=`%A%e %B %G` &tpl=`NewsPost` &commentsChunk=`JotBlogComments` &tagData=`tvblogTags`]]
                but, somehow, it’s not filling up the [+summary+] placeholder in my template unless I enable truncating, but I want to show the full article.
                  • 18397
                  • 3,250 Posts
                  This should fix that. In classes/ditto.class.inc.php replace:

                  		if ($trunc != false) {
                  			$trunc = new truncate();
                  			$summary = $trunc->execute($resource,$trunc, $truncAt, $truncText, $truncLen, $truncOffset, $truncSplit, $removeChunk, $truncChars);
                  			$ditto->summaryType = $trunc->summaryType;
                  			$link = $trunc->link;
                  			$ditto->link = $link;
                  

                  with:
                  		if ($trunc != false) {
                  			$trunc = new truncate();
                  			$summary = $trunc->execute($resource,$trunc, $truncAt, $truncText, $truncLen, $truncOffset, $truncSplit, $removeChunk, $truncChars);
                  			$ditto->summaryType = $trunc->summaryType;
                  			$link = $trunc->link;
                  			$ditto->link = $link;
                  		} else {
                  			$summary = $resource["content"];
                  			$ditto->link = " ";
                  			$link = " ";
                  			$ditto->summaryType = "content";
                  		}
                  
                    • 11975
                    • 2,542 Posts
                    Hi Mark,

                    I’d like to call Ditto within a module.
                    I’ve tried several ways(runSnippet, include files) to do it but without succeding.
                    To make it work I need to change the way ditto builds URL
                    Is there any chance you include in the code a statement to look if we are in the manager and then apply different rules to make the url.

                    I’ve written a form builder based on selected TVs.
                    You can view a sample here ==> http://dixsix.fr/explorer/
                    I’d like to provide the same functionnality within the module tveditor to retrieve documents filtered on TVs

                    If I’m changing your code in order to suit my needs
                    Would you agree to include it in the next release of ditto ? That way people could use my form builder to create advanced search and manage TV options within the manager with tveditor.

                    Hope that makes sense

                    ;-)


                      Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                      • 16885
                      • 255 Posts
                      Yup, lovely, thanks!

                      Edit; the content is ok now, but it doesn’t filter the comments chunk now, perhaps you could take a look at that as well?