Yii Framework Forum: Yii Cms module (Site Structure) - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Yii Cms module (Site Structure) create pages, pagesets, set layouts, metatags Rate Topic: -----

Poll: Yii Cms module (Site Structure) (24 member(s) have cast votes)

Do you like Site Structure module?

  1. Yes, it's awesome :) (22 votes [91.67%])

    Percentage of vote: 91.67%

  2. no (2 votes [8.33%])

    Percentage of vote: 8.33%

Vote Guests cannot vote

#1 User is offline   aliaksej 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 04-April 09

Posted 18 November 2010 - 04:44 PM

Release can be downloaded here: http://www.yiiframew...tructuremodule/

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/...tructure-module

Play with DEMO on http://aliaksej.com/demos/cms/
log in with admin/admin and go to Cms section!!!

Posted Image
Posted Image
Posted Image
0

#2 User is offline   aliaksej 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 04-April 09

Posted 26 November 2010 - 08:36 AM

Module has been released!!!

http://www.yiiframew...tructuremodule/
0

#3 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 26 November 2010 - 09:11 AM

I just wanted to say: Awesome!! :D

Please keep this warm.

I am sure a lot of users will appreciate it.


"Less noise - more signal"
0

#4 User is offline   YogiYang 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 16-June 10

Posted 12 May 2011 - 06:30 AM

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?
0

#5 User is offline   aliaksej 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 04-April 09

Posted 12 May 2011 - 08:24 AM

Quote

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:


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

#6 User is offline   peili 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 35
  • Joined: 28-August 10
  • Location:Germany - Munich

Posted 25 May 2011 - 09:26 AM

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}

0

#7 User is offline   peili 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 35
  • Joined: 28-August 10
  • Location:Germany - Munich

Posted 18 June 2011 - 12:38 PM

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
0

#8 User is offline   YogiYang 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 16-June 10

Posted 21 June 2011 - 05:36 AM

View Postaliaksej, on 18 November 2010 - 04:44 PM, said:

Release can be downloaded here: http://www.yiiframew...tructuremodule/

This module is implementation of LiskCms Site Structure module.

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


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?
0

#9 User is offline   aliaksej 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 04-April 09

Posted 22 June 2011 - 08:12 AM

View PostYogiYang, on 21 June 2011 - 05:36 AM, said:

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
0

#10 User is offline   YogiYang 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 16-June 10

Posted 23 June 2011 - 06:26 AM

View Postaliaksej, on 22 June 2011 - 08:12 AM, said:

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

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
0

#11 User is offline   izepstan 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 29-May 11

Posted 23 June 2011 - 08:31 AM

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.yiiframew...ructure-module/, has a similar error.

can you suggest something?

thx.
0

#12 User is offline   kamankily 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 09-August 11

Posted 30 January 2012 - 01:08 AM

I get the same error like izepstan
I am using Yii 1.1.9
To me, the changes are the chances.
0

#13 User is offline   alex-ks 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 60
  • Joined: 29-August 11
  • Location:Minsk, Belarus

Posted 07 February 2012 - 10:13 AM

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

#14 User is offline   ucef 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 09-December 11

Posted 22 February 2012 - 06:42 PM

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


Quote

CHttpException

You are not authorized to perform this action. (/Applications/XAMPP/xamppfiles/htdocs/yiiroot/selfster/protected/modules/rights/components/RController.php:62)

#0 /Applications/XAMPP/xamppfiles/htdocs/yiiroot/selfster/protected/modules/rights/components/RightsFilter.php(57): RController->accessDenied()
#1 /Applications/XAMPP/xamppfiles/htdocs/yiiroot/framework/web/filters/CFilter.php(39): RightsFilter->preFilter(Object(CFilterChain))
#2 /Applications/XAMPP/xamppfiles/htdocs/yiiroot/selfster/protected/modules/rights/components/RController.php(36): CFilter->filter(Object(CFilterChain))
#3 /Applications/XAMPP/xamppfiles/htdocs/yiiroot/framework/web/filters/CInlineFilter.php(59): RController->filterRights(Object(CFilterChain))
#4 /Applications/XAMPP/xamppfiles/htdocs/yiiroot/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter(Object(CFilterChain))
#5 /Applications/XAMPP/xamppfiles/htdocs/yiiroot/framework/web/CController.php(283): CFilterChain->run()
#6 /Applications/XAMPP/xamppfiles/htdocs/yiiroot/framework/web/CController.php(257): CController->runActionWithFilters(Object(CInlineAction), Array)
#7 /Applications/XAMPP/xamppfiles/htdocs/yiiroot/framework/web/CWebApplication.php(277): CController->run('create')
#8 /Applications/XAMPP/xamppfiles/htdocs/yiiroot/framework/web/CWebApplication.php(136): CWebApplication->runController('survey/userCont...')
#9 /Applications/XAMPP/xamppfiles/htdocs/yiiroot/framework/base/CApplication.php(158): CWebApplication->processRequest()
#10 /Applications/XAMPP/xamppfiles/htdocs/yiiroot/selfster/index.php(25): CApplication->run()
#11 {main}

"I'm using Rights module to handle authorization"

any suggestion
0

#15 User is offline   Wilbo 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 52
  • Joined: 06-September 13

Posted 18 September 2013 - 08:18 AM

Hi there,

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

Quote

Alias "application.modules.cms.components.CmsHandler" is invalid. Make sure it points to an existing PHP file and the file is readable. (C:\wamp\yii\framework\YiiBase.php:322)


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

Thanks
0

#16 User is offline   umakavin 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 20-May 14

Posted 20 May 2014 - 01:26 AM

i was installed cms module everything was working.
but the page url is not working what supposed to do
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users