Updated blog design to use ?page=123&size=456.

Use  /blog/{user} url to list blog from a specific user.
Fixed bad xhtml rendering (missing closing tag).
This commit is contained in:
2017-01-27 19:12:37 +01:00
parent 456770ca3e
commit 38b4713276
5 changed files with 69 additions and 60 deletions

View File

@@ -41,11 +41,7 @@ feature {NONE} -- Initialization
create {CMS_BLOG_STORAGE_NULL} blog_storage.make
end
--| For test reasons this is 2, so we don't have to create a lot of blog entries.
--| TODO: Set to bigger constant.
entries_per_page := 6
-- initialize_node_types
default_entries_count_per_page := 8 -- Default FIXME: find a way to make it customizable.
end
feature {CMS_API_ACCESS, CMS_MODULE, CMS_API} -- Restricted access
@@ -58,7 +54,7 @@ feature {CMS_MODULE} -- Access nodes storage.
feature -- Configuration of blog handlers
entries_per_page : NATURAL_32
default_entries_count_per_page : NATURAL_32
-- The numbers of posts that are shown on one page. If there are more post a pagination is generated
feature -- Access node