We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12652
    • 228 Posts
    Is there anyway to set the ordering based on an input, such as a TV? I was hoping to create a TV as a numeric value and use that to determine order... but doesn’t seem to work using &sortBy, but hoping maybe there was some other way or I was just doing something wrong.

    thanks
      | Identity Developments delivers SEO focused web design and web presence services
      - it's not about websites, it's about your identity. |
      • 18397
      • 3,250 Posts
      Yes, make sure you prefix it with tv.
        • 12652
        • 228 Posts
        My mistake I think... was trying out the newest 0.9.5 beta, but then realized that the Ditto version 1.02 may not have been able to do that... did use the tv prefix. Now updated to the 1.1 version and it works.

        I’m guessing not, but anyway to sort by multiple criteria? Grouping... say...

        Blue
        1
        2
        3
        4

        Black
        1
        2
        3
        4

        where multiple categories may each be numbered and may have matching or overlapping numbers?


        And additional request.... any way to serve up a random document?
        Thanks.
          | Identity Developments delivers SEO focused web design and web presence services
          - it's not about websites, it's about your identity. |
          • 18397
          • 3,250 Posts
          Random is in 1.1. As for the mult categories, that is not a feature built into Ditto.
            • 16429
            • 254 Posts
            Is there a full list of params for Ditto 1.1?
            Not much need for descriptions, but a full list can be useful.
              kudo
              www.kudolink.com - webdesign (surprised?)

              [img]http://www.kudolink.com/kudolinkcom.png[/img] [sup]proudly uses[/sup] [img]http://www.kudolink.com/modx.png[/img]
              • 18397
              • 3,250 Posts
              Not at the moment, but I do have a TRAC install nearly finished for it with further documentation!
                • 16429
                • 254 Posts
                Seems to me or Ditto 1.1beta can’t retrieve a TV if the value is @INHERITed?
                  kudo
                  www.kudolink.com - webdesign (surprised?)

                  [img]http://www.kudolink.com/kudolinkcom.png[/img] [sup]proudly uses[/sup] [img]http://www.kudolink.com/modx.png[/img]
                  • 18397
                  • 3,250 Posts
                  @INHERIT is relative to the document that it is being displayed on and not its source document. Thus, it will display improperly when called from another page.
                    • 16429
                    • 254 Posts
                    I was wondering about something like this.
                    Perhaps the inheritance mechanism needs a look, now I can’t remember exactly (shame on me I’ve not written it) but I’ve found some other issue on using the @INHERIT bind.

                    In this week I’ll take a look at the Request class to implement complex filtering.
                      kudo
                      www.kudolink.com - webdesign (surprised?)

                      [img]http://www.kudolink.com/kudolinkcom.png[/img] [sup]proudly uses[/sup] [img]http://www.kudolink.com/modx.png[/img]
                      • 18397
                      • 3,250 Posts
                      It shouldn’t be too difficult. All you need to do is search for filter_# and then combine them with the delimiter. Shouldn’t be more than 5 or 6 lines of code.

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