Yii Cms module (Site Structure)

Release can be downloaded here: http://www.yiiframework.com/extension/cmssitestructuremodule/

This module is implementation of LiskCms Site Structure module.

MAIN GOAL OF THIS MODULE IS CREATING AND MANAGING DYNAMIC CONTENT PAGES WITH DIFFERENT LAYOUTS.

Features:

  1. Create Page/PageSet/Link

  2. Sort items

  3. Set page templates, subtemplates, layouts

  4. Set title, metatags, description

  5. Public\Authorised acces to pages

Main feature => absolutely SEO-friendly urls without creating controllers:

http://aliaksej.com/projects/yii-cms-site-structure-module

Play with DEMO on http://aliaksej.com/demos/cms/

log in with admin/admin and go to Cms section!!!

Module has been released!!!

http://www.yiiframework.com/extension/cmssitestructuremodule/

I just wanted to say: Awesome!! :D

Please keep this warm.

I am sure a lot of users will appreciate it.

Hello,

I am trying to use this extension but am facing a few problems.

I have completed all things as instructed in the accompanying Readme file but when I try to access the CMS I am getting following error:


CHttpException


You are not authorized to perform this action. (D:\xampp\htdocs\yii\framework\web\auth\CAccessControlFilter.php:157)

#0 D:\xampp\htdocs\yii\framework\web\auth\CAccessControlFilter.php(119): CAccessControlFilter->accessDenied(Object(CWebUser), 'You are not aut...')

#1 D:\xampp\htdocs\yii\framework\web\filters\CFilter.php(39): CAccessControlFilter->preFilter(Object(CFilterChain))

#2 D:\xampp\htdocs\yii\framework\web\CController.php(1122): CFilter->filter(Object(CFilterChain))

#3 D:\xampp\htdocs\yii\framework\web\filters\CInlineFilter.php(59): CController->filterAccessControl(Object(CFilterChain))

#4 D:\xampp\htdocs\yii\framework\web\filters\CFilterChain.php(130): CInlineFilter->filter(Object(CFilterChain))

#5 D:\xampp\htdocs\yii\framework\web\CController.php(283): CFilterChain->run()

#6 D:\xampp\htdocs\yii\framework\web\CController.php(257): CController->runActionWithFilters(Object(CInlineAction), Array)

#7 D:\xampp\htdocs\yii\framework\web\CWebApplication.php(328): CController->run('')

#8 D:\xampp\htdocs\yii\framework\web\CWebApplication.php(121): CWebApplication->runController('cms')

#9 D:\xampp\htdocs\yii\framework\base\CApplication.php(155): CWebApplication->processRequest()

#10 D:\xampp\htdocs\yogi_blog\index.php(13): CApplication->run()

#11 {main}

I have logged in as demo.

What mistake am I making here?

You should log in via admin user or you should rewrite access rules in cms controller to your login :)

Any ideas?


PDOException


There is already an active transaction (/Users/myusername/sites/9_Divego/yii/framework/db/CDbConnection.php:460)


#0 /Users/myusername/sites/9_Divego/yii/framework/db/CDbConnection.php(460): PDO->beginTransaction()

#1 /Users/myusername/sites/9_Divego/yii/protected/extensions/nestedset/TreeBehavior.php(840): CDbConnection->beginTransaction()

#2 /Users/myusername/sites/9_Divego/yii/protected/extensions/nestedset/TreeBehavior.php(674): TreeBehavior->moveNode(Object(TreeBehavior), true, true)

#3 [internal function]: TreeBehavior->moveBelow(Object(TreeBehavior))

#4 /Users/myusername/sites/9_Divego/yii/framework/base/CComponent.php(261): call_user_func_array(Array, Array)

#5 /Users/myusername/sites/9_Divego/yii/framework/db/ar/CActiveRecord.php(213): CComponent->__call('moveBelow', Array)

#6 [internal function]: CActiveRecord->__call('moveBelow', Array)

#7 /Users/myusername/sites/9_Divego/yii/protected/extensions/nestedset/TreeBehavior.php(375): Cms->moveBelow(Object(TreeBehavior))

#8 [internal function]: TreeBehavior->appendChild(Object(Cms))

#9 /Users/myusername/sites/9_Divego/yii/framework/base/CComponent.php(261): call_user_func_array(Array, Array)

#10 /Users/myusername/sites/9_Divego/yii/framework/db/ar/CActiveRecord.php(213): CComponent->__call('appendChild', Array)

#11 [internal function]: CActiveRecord->__call('appendChild', Array)

#12 /Users/myusername/sites/9_Divego/yii/protected/modules/cms/controllers/CmsController.php(115): Cms->appendChild(Object(Cms))

#13 [internal function]: CmsController->actionUpdate('3')

#14 /Users/myusername/sites/9_Divego/yii/framework/web/actions/CAction.php(104): ReflectionMethod->invokeArgs(Object(CmsController), Array)

#15 /Users/myusername/sites/9_Divego/yii/framework/web/actions/CInlineAction.php(48): CAction->runWithParamsInternal(Object(CmsController), Object(ReflectionMethod), Array)

#16 /Users/myusername/sites/9_Divego/yii/framework/web/CController.php(300): CInlineAction->runWithParams(Array)

#17 /Users/myusername/sites/9_Divego/yii/framework/web/filters/CFilterChain.php(133): CController->runAction(Object(CInlineAction))

#18 /Users/myusername/sites/9_Divego/yii/framework/web/filters/CFilter.php(41): CFilterChain->run()

#19 /Users/myusername/sites/9_Divego/yii/framework/web/CController.php(1122): CFilter->filter(Object(CFilterChain))

#20 /Users/myusername/sites/9_Divego/yii/framework/web/filters/CInlineFilter.php(59): CController->filterAccessControl(Object(CFilterChain))

#21 /Users/myusername/sites/9_Divego/yii/framework/web/filters/CFilterChain.php(130): CInlineFilter->filter(Object(CFilterChain))

#22 /Users/myusername/sites/9_Divego/yii/framework/web/CController.php(283): CFilterChain->run()

#23 /Users/myusername/sites/9_Divego/yii/framework/web/CController.php(257): CController->runActionWithFilters(Object(CInlineAction), Array)

#24 /Users/myusername/sites/9_Divego/yii/framework/web/CWebApplication.php(328): CController->run('update')

#25 /Users/myusername/sites/9_Divego/yii/framework/web/CWebApplication.php(121): CWebApplication->runController('cms/cms/update/...')

#26 /Users/myusername/sites/9_Divego/yii/framework/base/CApplication.php(155): CWebApplication->processRequest()

#27 /Users/myusername/sites/9_Divego/yii/htdocs/index.php(23): CApplication->run()

#28 {main}

Hello,

I have one question concerning the Menu.php in the components.

I use this widget for the main navigation. But the navigationbar shows only pages level = 1 .

There is another sidebar to show pages below that level.

I would like to highlight the topnavigation items, if you visit a subpage.


$menu[] = array('label'=>$item->name,'url'=>array("/".$item->url),'active'=>Yii::app()->getRequest()->getPathInfo()==$item->url?true:false);

This works perfect, but only for active pages level = 1.

Do you have an efficient idea to solve my problem.

Best regards,

peili

Thanks for this CMS module. I really like it but unfortunately it is not working on Linux based server. It works just fine on Windows based server but not is Linux. What to do?

Please describe errors while starting server. My module works fine in live, and i’m not Nostradamus to guess what happened.

Enable error reporting and write here error log

I am not talking of predictions. I can’t show any error messages as after hosting the site on Linx based web server nothing shows up! No errors, nothing at all. The log in page just does not appear. All that comes up is the index page.

Is there any other way to debug and generate an error log with your plug-ing.

Thanks for offering to help me out.

Regards,

Yogi Yang

hello there, the description sounds amazing but:

i installed the module with a fresh installation of the latest yii build and i get this error:

Notice: Undefined variable: id in C:\www\ms\protected\modules\cms\components\CmsHandler.php on line 11

Application Log

Timestamp Level Category Message

15:28:15.814469 trace system.CModule

Loading "log" application component

in C:\www\ms\index.php (13)

15:28:15.818739 trace system.CModule

Loading "request" application component

in C:\www\ms\index.php (13)

15:28:15.820506 trace system.CModule

Loading "urlManager" application component

in C:\www\ms\index.php (13)

15:28:15.822480 trace system.base.CModule

Loading "cms" module

in C:\www\ms\index.php (13)

15:28:15.833775 error php

Non-static method Cms::tableName() should not be called statically,

assuming $this from incompatible context

(C:\www\ms\protected\modules\cms\controllers\InstallController.php:74)

Stack trace:

#0 C:\www\yiiroot\framework\web\actions\CInlineAction.php(50):

InstallController->actionIndex()

#1 C:\www\yiiroot\framework\web\CController.php(300):

CInlineAction->runWithParams()

#2 C:\www\yiiroot\framework\web\CController.php(278):

InstallController->runAction()

#3 C:\www\yiiroot\framework\web\CController.php(257):

InstallController->runActionWithFilters()

#4 C:\www\yiiroot\framework\web\CWebApplication.php(328):

InstallController->run()

#5 C:\www\yiiroot\framework\web\CWebApplication.php(121):

CWebApplication->runController()

#6 C:\www\yiiroot\framework\base\CApplication.php(155):

CWebApplication->processRequest()

#7 C:\www\ms\index.php(13): CWebApplication->run()

REQUEST_URI=/ms/cms/install

in C:\www\ms\protected\modules\cms\controllers\InstallController.php (74)

in C:\www\ms\protected\modules\cms\controllers\InstallController.php (60)

in C:\www\ms\protected\modules\cms\controllers\InstallController.php (8)

15:28:15.834228 trace system.CModule

Loading "errorHandler" application component

in C:\www\ms\protected\modules\cms\controllers\InstallController.php (74)

in C:\www\ms\protected\modules\cms\controllers\InstallController.php (60)

in C:\www\ms\protected\modules\cms\controllers\InstallController.php (8)

This guy here, http://www.yiiframework.com/forum/index.php?/topic/20240-cms-site-structure-module/, has a similar error.

can you suggest something?

thx.

I get the same error like izepstan

I am using Yii 1.1.9

When I creating new page, why link not appearing in the top menu?

its a great module

but I’m facing a problem with authorization " error 403"

if the user doesn’t have the rights to see any page inside the website even if its not created by this module

he gets a broken white page with CHttpException

“I’m using Rights module to handle authorization”

any suggestion

Hi there,

Trying to install but I gte the following error when I try to visit cms/install:

Any ideas? Is there supposed to be a CmsHandler.php file somewhere?

Thanks

i was installed cms module everything was working.

but the page url is not working what supposed to do