We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4295
    • 98 Posts
    Any word yet on how to call Reflect or parameters or anything? Just checking. Thanks.
      • 4295
      • 98 Posts
      I had to post again to say "Thanks!" for including the [tt]$where[/tt] parameter. Very cool and something I’ve wished for. I tried it and it worked fine. Thanks for the great work on Ditto.

      EDIT: For you testers out there. There is something screwy about the [tt]&hideFolders[/tt] parameter. It returns folders for me even if I use [tt]&hideFolders=`1`[/tt].

      I was wondering if this was the culprit in [tt]ditto.class.inc.php[/tt]? [tt]$hidefolders[/tt] does not have the "f" in folders capitalized. When I change that to a "F", I don’t get the error -- but it still returns folders no matter what I do.
      // Create where clause
      $where = $hidefolders ? 'isfolder = 0' : '';
      $where .= $showInMenuOnly ? 'hidemenu = 0': '';
      $where .= ($mywhere == '') ? '' : $mywhere;


      Another thing is when using the &where parameter -- the SELECT statement returns with no space between the [tt]isfolder[/tt] and [tt]where[/tt] so it throws an error.
      [tt]isfolder = [red]0p[/red]agetitle LIKE ’M%’[/tt]
        • 28676
        • 136 Posts
        I know this sounds like a daft question but do I install this the same way as the old version i.e delete the old ditto folder and upload the new ditto.

        Also is the call to make the snippet work the same as the old version? I`m asking because I dont see any docs on this
          I made my first site with modx
          ------------------------
          http://www.shop-bright.com | Uk shopping blog
          • 18397
          • 3,250 Posts
          I just checked hideFolders and it is working fine for me.

          Thank you for finding the space issue. I will correct it in 1.1 Final.

          1.1 should be installed in the same manner as 1.0.2. However, the snippet calls are different. There is no updated list of parameters as it is still in Beta, but your old calls should continue to function.
            • 28676
            • 136 Posts
            I installed it by removing the old ditto folder and replacing with the new stuff, but it didnt show anything at all, nothing?
            Anyway I know you are prolly busy.
              I made my first site with modx
              ------------------------
              http://www.shop-bright.com | Uk shopping blog
              • 6437
              • 157 Posts
              Just out of curiousity, will Ditto 1.1 be making it out of Beta at the same time as 0.9.5 ?

              Steve
                • 28676
                • 136 Posts
                Sorry my mistake, I needed to take out the <?php bit of code, I read in first post.

                si
                  I made my first site with modx
                  ------------------------
                  http://www.shop-bright.com | Uk shopping blog
                  • 4295
                  • 98 Posts
                  Quote from: Mark at Nov 08, 2006, 09:37 PM

                  I just checked hideFolders and it is working fine for me.

                  Thank you for finding the space issue. I will correct it in 1.1 Final.

                  Mark, I meant to mention earlier that hideFolders is working for me now -- I think it was a corrupted download -- as a fresh install worked fine.

                  IDEA: Mark, you might wish to consider having another parameter that could be set to make the appearance of the pagination menu conditional based on whether the search results exceed the summarize value. IOW, let’s say I set my summarize to 40 items and turn on paginate. If I don’t have 40 items returned then the paginate menu would not appear -- if it exceeded this and had a page 2 then it would appear. Just a thought.
                    • 12652
                    • 228 Posts
                    Quote from: Mark at Nov 01, 2006, 12:39 AM

                    Random is in 1.1. As for the mult categories, that is not a feature built into Ditto.

                    Found it in the code, but FYI, the "randomize" parameter isn’t listed with the other parameters... at least in the snippet itself. I initially tried "random" but then found it and realized the call needs to be made as &randomize=`1`

                    Thanks
                      | Identity Developments delivers SEO focused web design and web presence services
                      - it&#39;s not about websites, it&#39;s about your identity. |
                      • 12652
                      • 228 Posts
                      Is there anyway to create complex filtering based on tags?

                      e.g.,

                      show anything that matches (A or B) and C

                      or

                      (A or B) and (C or D) and !E

                      My guess is no as it seem, currently anyway, that it is either all, any, none, or not any, but can’t be a combination... any of these, none of those, etc.
                        | Identity Developments delivers SEO focused web design and web presence services
                        - it&#39;s not about websites, it&#39;s about your identity. |

                      This discussion is closed to further replies. Keep calm and carry on.