#3: Routet page and limited entries

The blog module routes /blog/{page} and the blog handler limits the entries per page (given as a feature) and sets the offsets according to the given page number
This commit is contained in:
Dario Bösch
2015-05-22 11:17:34 +02:00
parent 802ad0626e
commit fb196735b6
6 changed files with 118 additions and 12 deletions

View File

@@ -49,4 +49,10 @@ feature -- Access node
Result := node_storage.blogs
end
blogs_order_created_desc_limited (a_limit:INTEGER_32; a_offset:INTEGER_32) : LIST[CMS_NODE]
-- List of nodes ordered by creation date and limited by limit and offset
do
Result := node_storage.blogs_limited (a_limit, a_offset)
end
end