ggppdk wrote: do you want to include only categories that have less than NN (e.g. less than 10) items ?
Yes. Well, technically, subcategories that have fewer than NN items within a given top level category. So, using my earlier example, if I were using the 'Pets' top level category, the page would include only items from subcategories of 'Pets' which have fewer than NN items.
ggppdk wrote: do you want to list sub-categories and then under every sub-category list the items of every category ?
Not precisely. I do want all the items from the subcategories which qualify to be listed, but I want to use the same layout I use for a menu item that links to a category with subcategories. In this case, that isn't literally a list of 'subcategory, its items; next subcategory, its items, etc.' It's actually a list of all the items, in which each one is marked by which subcategories it belongs to.
But ideally, I'd like it not to matter how the data is going to be displayed -- to be able to change layouts for it if I want to without recoding the whole thing.
If it could use the same actual layout file that the menu item is using, that would be perfect.
Thank you for your response!
Edited to add:
If I have to do it as a special page rather than a menu item type, I'm reasonably sure I could write a DB query to get the appropriate subcategories and their items all right -- what I'm finding really tricky is figuring out how I might be able to pipe the results through the layout file.
Whereas if it were a menu item type, the layout use is presumably trivial -- but the instructions I've found for making menu item types assume it's your own component, and I wouldn't want it to get overwritten later if I did all that work. It looks fairly complicated.
If there's a third, better way, which hasn't yet occurred to me, I will happily try it!