4

Using Drupal 7, I've created a view to render a list of most recent content types grouped by taxonomy. I can set a global limit for items returned but I'd instead like to limit it per group. So if I've got the terms "Apples", "Bananas" and "Carrots" I'd like to get the top three Apples, top three Bananas and top three Carrots. Currently I'm getting results such as top two Apples and one banana or top three apples.

UPDATE

I actually found a way to do it without creating multiple views. There's a module called Views Grouping Row Limit that does exactly that I'm looking for!

1

If I were trying to accomplish this, I'd create multiple views attachments to do this. Then you can limit the number for each easily in the pager settings.

| improve this answer | |
  • Thanks Beth, that's what I was thinking, too, just hoping to avoid having to create and edit a bunch of views every time. – Chris Haas Aug 15 '12 at 21:10
  • If you use "clone view" after making the first one, and you don't override defaults for anything that you want most or all of the views to inherit, it should be pretty maintainable. – beth Aug 15 '12 at 22:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.