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:
Dario Bösch
2015-05-22 11:30:54 +02:00
parent fb196735b6
commit 1f61126d22
3 changed files with 33 additions and 18 deletions

View 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