Added feed ordered by publication on /nodes/{type}/feed.

This commit is contained in:
2017-03-03 13:16:04 +01:00
parent 0febe3418b
commit bb25a8b12e
8 changed files with 157 additions and 16 deletions

View File

@@ -190,6 +190,12 @@ feature -- Access: Node
Result := node_storage.recent_nodes_of_type (a_content_type, params.offset.to_integer_32, params.size.to_integer_32)
end
recent_published_nodes_of_type (a_content_type: CMS_CONTENT_TYPE; params: CMS_DATA_QUERY_PARAMETERS): ITERABLE [CMS_NODE]
-- Most recent published `a_content_type` nodes according to `params.offset' and `params.size', and order by publication_date.
do
Result := node_storage.recent_published_nodes_of_type (a_content_type, params.offset.to_integer_32, params.size.to_integer_32)
end
recent_node_changes_before (params: CMS_DATA_QUERY_PARAMETERS; a_date: DATE_TIME): ITERABLE [CMS_NODE]
-- List of recent changes, before `a_date', according to `params' settings.
do