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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

75th Trombone created an issue. See original summary.

Lanny Heidbreder’s picture

Patch 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.

Lanny Heidbreder’s picture

Lanny Heidbreder’s picture

Title: Allow an offset from the beginning to be specified on Representative Node relationships. » Allow an offset from the beginning to be specified on Representative Node relationships
IckZ’s picture

Perfect! This also works brilliant and is very usefull! thanks!

DamienMcKenna’s picture

Assigned: Lanny Heidbreder » Unassigned
Status: Active » Needs review

FYI 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.