Problem/Motivation
The "Representative Node" relationship is great for showing a single node that goes with the taxonomy term (or user) you're displaying. But sometimes it'd be nice to show more than one representative node.
Proposed resolution
Add an Offset option to the Representative Node options form, which specifies how many results to skip from the top of the sort criterion specified.
Remaining tasks
Patch forthcoming when I have an issue number. After that, testing testing testing.
User interface changes
An additional form element on the Representative Node options form.
API changes
None known. The new option gets a default value of zero, which is equivalent to when the option didn't exist.
Data model changes
None known.
Comment | File | Size | Author |
---|---|---|---|
#2 | views-representative-node-offset-2728673-2.patch | 5.51 KB | Lanny Heidbreder |
Comments
Comment #2
Lanny Heidbreder CreditAttribution: Lanny Heidbreder at Stone Ward commentedPatch attached. It includes the patch from https://www.drupal.org/node/1417090#comment-10750098. I'll reroll this patch to include only my changes if that one gets committed.
Comment #3
Lanny Heidbreder CreditAttribution: Lanny Heidbreder at Stone Ward commentedComment #4
Lanny Heidbreder CreditAttribution: Lanny Heidbreder at Stone Ward commentedComment #5
IckZ CreditAttribution: IckZ commentedPerfect! This also works brilliant and is very usefull! thanks!
Comment #6
DamienMcKennaFYI the "assigned" field is for indicating that you're actively working on an issue, if you're not actively working on an issue please leave it set to "unassigned". Also, when you upload a patch please set the status to "needs review", that starts the testbot reviewing the patch and lets others know there's a patch to review. Thank you.