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 are correct, It is not currently possible. Could you explain a situation where this would be neccessary?
      • 16429
      • 254 Posts
      Mark, did you read my PM? smiley
        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]
        • 12652
        • 228 Posts
        Quote from: Mark at Nov 10, 2006, 11:54 PM

        You are correct, It is not currently possible. Could you explain a situation where this would be neccessary?

        Or the other question, since I don’t recall now, is whether you can give multiple startID’s in one Ditto call?

        I’m trying to setup a product catalog but wanted to do it without setting up a strictly hiearchical structure, which would end up duplicating Brand folders under each Product Type. It is further complicated that some Products may share two types, such as Mens and Womens (but the same actual product, same product number, not just same style available to both).

        So I’m wanting to have:

        Products
        - Product Type A
        -- Brand A
        -- Brand B
        -- Brand C
        - Class - Mens (Really falls under Type A)
        - Class - Womens
        Product Type B
        -- Brand D
        -- Brand E
        - Class A
        - Class B
        - Class C

        While Brands will primarily fall under the respective Product Types, some brands may have both Product Types, and will most products will fall under one Class, some may fall under more than one, i.e., Mens, Womens.

        Sorry, it’s hard to explain, but initial playing wasn’t filtering enough because of the possibility of two Types.

        So it looks like I need to set it up like so:

        Products
        - Product Type A
        -- Class A
        --- Brand A
        --- Brand B
        --- Brand n
        -- Class n
        --- Brand n
        - Product Type n
        -- Class n
        --- Brand n

        And have Ditto calls on each page level that pulls one of each...

        Products > one product from each Product Type
        Product Type > one product from each Class
        Product Class > one product from each Brand
        Brand > all products within that Class and Type

        ...but it was late last night so I’ll play today and maybe will figure something out. If I have to hierachical, that isn’t entirely terrible as it will probably be easier for the administrators to manage.

        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
          "can [you] give multiple startID’s in one Ditto call?"

          Yes. Comma delineate them.

          On another note, does anyone second the request for complex filtering based on tags?

          @Kudo, yes. You should have gotten a thank you PM. I changed a bit to make it work with 1.1 Final which supports multiple calls on a page (with pagination, configs, languages).
            • 14050
            • 788 Posts
            Quote from: bullrat at Nov 09, 2006, 04:20 PM

            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.

            I would second this.
              Jesse R.
              Consider trying something new and extraordinary.
              Illinois Wine

              Have you considered donating to MODx lately?
              Donate now. Every contribution helps.
              • 12652
              • 228 Posts
              Great Mark, thanks, that might help... I’m still trying to wrap my head around what will be presented and the best way, but nice knowing that is an option.

              On complex filtering, it might be nice if it could be delivered in one grouping, based on filter group....

              group:delimiter:tags:type

              where group could be an ever increasing assignment for multiple groups, so maybe:

              &filter=`1:,:new,best seller:anyTags` &filter=`2:,:mens:onlyTags` &filter=`3:levis,lee,j crew,the gap:anyTags` &filter=`4:,:staight leg,button fly:onlyAllTags`


              But just a thought, no idea the complexities involved here or the best way to handle them.
                | Identity Developments delivers SEO focused web design and web presence services
                - it's not about websites, it's about your identity. |
                • 4295
                • 98 Posts
                Mark, I’ve been playing with Reflect. Pretty darn sweet. I suppose it would be a ton of work, but if the Year and Month were collapsable like a "plus sign" tree structure, it would be fantastic. Anyway, great work -- this is a very versatile snippet.
                  • 28676
                  • 136 Posts
                  Sorry to butt in, still new to everything modx, I upgraded to the new ditto, nice real nice - but what is the reflect thing? What do I use it for?
                    I made my first site with modx
                    ------------------------
                    http://www.shop-bright.com | Uk shopping blog
                    • 18397
                    • 3,250 Posts
                    Reflect is the archiving component from Ditto 1.0.2 but times 10!

                    @bullrat: That would best be accomplished via Javascript and Moo.fx. Unfortunatly, I no longer program in Javascript. If anyone else can whip up a simple Moo.fx script I would be happy to include it with Ditto.
                      • 16429
                      • 254 Posts
                      Quote from: Mark at Nov 11, 2006, 12:37 PM

                      @Kudo, yes. You should have gotten a thank you PM. I changed a bit to make it work with 1.1 Final which supports multiple calls on a page (with pagination, configs, languages).

                      No PMs, but I take this as good smiley
                      I’d love to see how you changed it (always learning).
                      BTW, do you know where I can read about that way to cycle variable names? I found only 1 line of code in a remote corner of internet and then guessed how to use it, but I can’t find any reference on it in the online php documentation.

                      I think I’ll give a look at the filter class next week, because it definitely needs to explode TVs values before confronting.
                        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]

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