U4-4955 - Change IsSomething helpers to relate position to siblings as it's currently unstable & add ToContentSet method which resets the helpers to relate to position in a collection

Created by Jeavon Leopold 20 May 2014, 15:19:01 Updated by Sebastiaan Janssen 05 Jun 2015, 16:28:23

The helpers are: IsFirst IsNotFirst IsPosition IsModZero IsNotModZero IsNotPosition IsLast IsNotLast IsEven IsOdd

This will now be true if the "page" is the last item in relation to it's siblings

var myCollection = Model.Content.Children(x =>x.IsVisible()); foreach (var page in myCollection) {



So if we now want IsLast to be true in the context of the collection:

var myCollection = Model.Content.Children(x =>x.IsVisible()); foreach (var page in myCollection.ToContentSet()) {




Priority: Normal

Type: Bug

State: Fixed


Difficulty: Normal


Backwards Compatible: False

Fix Submitted:

Affected versions: 7.1.0, 6.2.0

Due in version: 7.1.0, 6.2.0


Story Points: