0

I have a node type (stories) which is related to a taxonomy vocabulary (countries).

Each story is related to one country only.

I want to create a view of the latest story from each country, ordered by published date. I only want 1 story from each country (if there is one).

I looked into doing this with views and couldn't see a way to limit the results to only 1 result per country.

Does anyone have any suggestion how I can do this without writing a custom query?

Thanks,

2
  • you need to add filter and set Use pager to 1 item
    – Aboodred1
    Commented May 2, 2013 at 15:02
  • Clearly that's not going to work as it's much more complicated than that. if pager was set to 1 i would only have 1 result.
    – rix
    Commented May 2, 2013 at 15:09

1 Answer 1

0

I think that's the purpose of the module Views Grouping Row Limit.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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