Skip to content

How to convert "{% assign items = Queries[query] | query: size: fetchCount, from: from %}" to razor code,please? #16689

Closed Answered by Habbni
effapp asked this question in Q&A
Discussion options

You must be logged in to vote
@{
    var items = (await Orchard.ContentQueryAsync(query)).Skip(from-1).Take(size);
}

hope i could help.
it´s also quite well documented here: https://docs.orchardcore.net/en/latest/reference/modules/Queries/#razor-helpers

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by effapp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants