Redesigned the CMS_BLOCK system,
- added condition attribute. It can be set via configuration file
with
[blocks]
{blockid}.region={region_name}
{blockid}.conditions[]=is_front
{blockid}.conditions[]=path:location-path/foo/bar
- For backward compatibility, the CMS will check only conditions for block name prefixed by "?".
Improved the configuration library to support list and table properties.
Updated theme for now, to include the feed examples.
Added "cache" classes, to ease caching of html output for instance. (TODO: improve by providing a cache manager).
51 lines
954 B
INI
51 lines
954 B
INI
[layout]
|
|
root-dir=site/www
|
|
#themes-dir=site/themes
|
|
#modules-dir=site/modules
|
|
|
|
[site]
|
|
name=Eiffel CMS
|
|
email=your@email.com
|
|
theme=bootstrap
|
|
|
|
[mailer]
|
|
smtp=localhost:25
|
|
#sendmail=/usr/bin/sendmail
|
|
#output=@stderr
|
|
|
|
[modules]
|
|
# Module status
|
|
# *=on -> modules are enabled by default
|
|
# *=off -> modules are disabled by default
|
|
# Default is "on"
|
|
# for each module, this can be overwritten with
|
|
# module_name= on or off
|
|
*=all
|
|
admin=on
|
|
auth=on
|
|
basic_auth=on
|
|
blog=on
|
|
debug=on
|
|
demo=on
|
|
node=on
|
|
oauth20=on
|
|
openid=on
|
|
|
|
[blocks]
|
|
#navigation.region=sidebar_first
|
|
feed.eiffel.region=feed_eiffel
|
|
feed.eiffel.condition=is_front
|
|
|
|
feed.forum.region=feed_forum
|
|
feed.forum.condition=is_front
|
|
|
|
feed.stackoverflow.region=feed_stackoverflow
|
|
feed.stackoverflow.condition=is_front
|
|
|
|
#management.condition=is_front
|
|
#navigation.condition=is_front
|
|
|
|
[admin]
|
|
# CMS Installation, are accessible by "all", "none" or uppon "permission". (default is none)
|
|
installation_access=permission
|