Configuration File added
Created CMS_BLOG_CONFIG at moved the feature entries_per_page to this new class. The blog hander inherits from the config class
This commit is contained in:
21
examples/demo/modules/blog/cms_blog_config.e
Normal file
21
examples/demo/modules/blog/cms_blog_config.e
Normal file
@@ -0,0 +1,21 @@
|
||||
note
|
||||
description: "Configuration class for the blog module."
|
||||
author: "Dario B<>sch <daboesch@student.ethz.ch"
|
||||
date: "$Date: 2015-05-22 11:26:00 +0100$"
|
||||
revision: "$Revision: 96616 $"
|
||||
|
||||
class
|
||||
CMS_BLOG_CONFIG
|
||||
|
||||
|
||||
feature {BLOG_HANDLER}-- Configuration of blog handler
|
||||
|
||||
entries_per_page : INTEGER
|
||||
-- The numbers of posts that are shown on one page. If there are more post a pagination is generated
|
||||
do
|
||||
-- For test reasons this is 2, so we don't have to create a lot of blog entries.
|
||||
-- TODO: Set to bigger constant.
|
||||
Result := 2
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user