cmssitestructuremodule Module for managing pages

Features:

  1. Create Page/PageSet/Link
  2. Sort items
  3. Set page templates, subtemplates, layouts
  4. Set title, metatags, description
  5. Public\Authorised access to pages.

Main feature: Absolute URLS from the root of project without creating controllers.

Requirements

Yii 1.4 or above.

SETTING UP.

  1. Requirements
  2. Resources
  1. copy files of module to modules/cms.
  2. activate module in config:
'modules'=>array(
	...,
	'cms'=>array(
		// this layout will be set by default if no layout set for page
		//'defaultLayout'=>'cms',
	),
	...
),
  1. Module uses nested set extension and translitUrl extension. Extensions are not in archive, you can download extensions in archive extensions.zip and unpack them to application.extensions path.

Set

'import'=>array(
	'application.models.*',
	'application.components.*',
	'application.extensions.nestedset.*', // import nested set extension
)
  1. set components config
'components'=>array(
...,
'errorHandler'=>array(
	'class'=>'application.modules.cms.components.CmsHandler',
),
'db'=>array(
    ...,
    'tablePrefix'=>'', // even empty table prefix required!!!
    ...
),
...,
'urlManager'=>array(
    'urlFormat'=>'path',
    ....
    'showScriptName'=>false,
),
),

Copy .htaccess from archive to root directory of project

  1. Installation database(mysql): go to cms module via route PROJECT_ROOT/cms/install Press "install database" link.

  2. After database installed, log in, go to http://PROJECT_URL/cms/and manage your pages!!!

Resources

HOW TO MAKE HOME PAGE OF PROJECT EDITABLE VIA CMS MODULE:

put this code to your default conntroller:

public function actionIndex()
{
    Yii::import('application.modules.cms.components.CmsHandler');
    CmsHandler::renderHomePage();
}
9 4
19 followers
5 084 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Others
Developed by: aliaksej
Created on: Nov 25, 2010
Last updated: 13 years ago

Downloads

show all

Related Extensions