Feature #52879

Implement Slice operation

Added by Dominique Feyer over 7 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Should have
Target version:
-
Start date:
2013-10-16
Due date:
% Done:

100%

Estimated time:

Description

As discussed on IRC with Christian EEL should support natively Slice opertation. A basic use case will be to display a list the the two last node type for a teaser.

API should look like, and work like the JS slide method:

${q(site).find('fr/blog').children('[instanceof Namespace.Plugin.Blog:Post]').slice()}
${q(site).find('fr/blog').children('[instanceof Namespace.Plugin.Blog:Post]').slice(2)}
${q(site).find('fr/blog').children('[instanceof Namespace.Plugin.Blog:Post]').slice(0, 2)}

Also available in: Atom PDF