#2 Structure of list of posts (blog)Ordered the posts by creation date. For this, I added a field to the nodes storage and api. Show the creation date and author. Styled the post and added a more link to the detail page

This commit is contained in:
Dario Bösch
2015-05-21 12:03:09 +02:00
parent 0e0cd131a5
commit 6a782e412d
6 changed files with 97 additions and 5 deletions

View File

@@ -41,6 +41,12 @@ feature -- Access: node
create {ARRAYED_LIST [CMS_NODE]} Result.make (0)
end
nodes_order_created_desc: LIST[CMS_NODE]
-- List of nodes ordered descending by creation date
do
create {ARRAYED_LIST [CMS_NODE]} Result.make (0)
end
recent_nodes (a_lower: INTEGER; a_count: INTEGER): LIST [CMS_NODE]
-- List of the `a_count' most recent nodes, starting from `a_lower'.
do