#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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user