Okay here's an attempt at explaingin what I want to do:

I want to create a view that provides a limited/controlled number of teaser nodes of a selected type (e.g. image nodes) per user.
I want to do this to build a gallery front page which sorts image_nodes per user using Author Name and just presents say one or two random samples per Author Name and which link to another view page listing all images attributed to that author name.

If code snippets are needed then I might need a little hand holding as I am new to Drupal and PHP.

Also if there is no current way of doing this directly in the views interface then I would like to make a feature request.
I imagine that it could be implimented as a filter operator called something like limit number of nodes returned for, with a number entered as an option.

My work in progress is here:
http://www.disscamera.org.uk/galleries

Comments

q_man’s picture

Title: Is it possible to Limit results to a certain number that match a type? » Limit results to a certain number of nodes per field result?

Have reclarified the title.
This would be really great to have some help on.

I'm not sure if you would need to build a GROUP BY function based on this.
Something to create a mysql query like SELECT uid, LATEST(node:created_time) from image_table GROUP BY UID
Although I'm no coder, and just have been trying to find some answers by googling on my ideas for solutions. (I don't think LATEST exists as an SQL aggregate function but hey I hope you get the idea)

I'm probably barking up the wroong tree entirely and it needs to work with drupal hooks or even some from the views API if they exist for this kind of function.
Either way please help!!

sun’s picture

Status: Active » Closed (won't fix)

Sorry, unfortunately this support request is way too specific. Please have a look at the issue queue - Views maintainers are buried already. You might want to try to get further support at http://drupal.org/support.

q_man’s picture

Version: 5.x-1.5 » 5.x-1.6

I can actually see this as having many possible uses - basically it could be used on any site where there is a large amount of user contributed content including media such as movies, images, music, etc. and you want to be able to create a granular navigation structure with drill down summaries that show a single sample of each of the sub-views. This is a very common organizational structure for sites as it provides both text and visual identifiers for navigation aiding the user experience.