I use the VBO-rules-action to load nodes via a VBO-view. But I need only the newest postet node to let rules do some stuff with (in my case, set a flag on the actual node of a node-reference-list). I get all the nodes with the same reference in rules. But the VBO-action has no possibility to limit the number of the result to 1.

That's why I think it would be a good feature request for VBO to either be able to limit the number of results in the action loading the list (considering the order of the views-list), or for the fetching to respect the number-of-items limit set in the view.

Comments

bojanz’s picture

VBO kills the pager intentionally. I think we should just stop doing that, the admin can decide whether he wants it or not when editing the view.

bojanz’s picture

Title: Limit the number of results in the rules-action loading the list, to respect the number-of-items limit set in the the view » The rules action for loading a list of entities from a VBO view should not remove the pager
Status: Active » Fixed
kay.beissert’s picture

Wow, one line of code and my problems are gone. Many thanks, you are great ;)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.