zyON Posted June 18, 2013 Share Posted June 18, 2013 I've been working with ProcessWire in the last few weeks trying to come up with this kind of structure and getting used to the way PW works. I must say I'm pretty impressed with it... The flexibility and ease of use that it provides is mind boggling. Picking up on this example and the suggestions of how to structure all of this in PW, I've went with way of creating BRANDS and COLLECTIONS as stand alone pages that can be reused with Page selects within the PRODUCT templates. Now, as I'm not defining BRANDS and COLLECTIONS as children of the Categories like MEN or WOMEN whats the best way to get the used BRANDS and COLLECTIONS within those Categories? Ex: /catalogue/men/suits/ All the BRANDS and COLLECTIONS are available under: /catalogue/brands and /catalogue/collections How can I get the used BRANDS (brands that are assigned under /men/suits) and only those? I guess I could use selectors to get 2 page arrays (one with the men suits and other with all the brands) and then compare and extract only the used ones, but that seems kind of costly... Is there another simple way to do it? I know that I can also use straight SQL but before jumping on that I just wanted to get some opinions from the experts . Thanks. Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now