Yii OpenCMS ¶
FEATURES ¶
- Backend and Frontend
- Bootstrap 2.3
- CMS Multilanguage Support I18n
- System & App Multilanguage Support I18n
- Cruge RBAC Reference: http://www.yiiframework.com/extension/cruge
- Based on NordCMS 2.0 Reference: https://bitbucket.org/NordLabs/nordcms
DIRECTORY STRUCTURE ¶
Reference: https://github.com/bryglen/yii-advanced-template
```
/protected
config
api/ contains api configurations
backend/ contains backend configurations
common/ contains shared configurations
console/ contains console configurations
frontend/ contains frontend configurations
test/ contains test driven development configurations
controllers
api/ contains api controller
backend/ contains backend controller
frontend/ contains frontend controller
models
_base contains base models (generated by gii)
_common contains common classes used in backend, frontend and api
api contains api-specific classes
backend contains backend-specific classes
frontend contains frontend-specific classes
/environment.php contains environment-based
GETTING STARTED
---------------
1. /assets - change permission to writable by webserver
2. /protected/runtime - change permission to writable by webserver
3. /uploads - change permission to writable by webserver
4. /environment.php - add your absolute path to $local_path
5. /index.php - define Yii Framework path to $local_path
6. /protected/config/dbconnect.local.php - adjust configuration
7. /protected/data/yiiopencms.sql - import database
You should be able to access:
* Frontend using the URL `http://localhost/opencms/`
* Backend using the URL `http://localhost/opencms/backend/` `user:admin passwd: admin`
**Author:** juankaka@gmail.com
**Version:** 0.1.0
Demo: http://www.mediatic.com.co/proyectos/yiiopencms/
Great...
Awesome :)..
New page doesn't appear
I successfully installed the cms, I tried to create a page in the backend but the page doesn't appear in the frontend! (the page is marked as 'published' in the backend)
Sorry de documentation is not full terminated
You need access to de Cms->Menu select "Navigation" is the default Menu, click in Add Link, Put the Label you want and in the URL put de same name of the page, you created
CDbException and ordering
The CMS looks good. However, I came across a CDbException when deleting a page I created:
CDbException
CDbCommand falló al ejecutar la sentencia SQL: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'aboutuss' for key 'name'. The SQL statement executed was: INSERT INTO
cms_page
(parentId
,published
,deleted
,name
,created
) VALUES (:yp0, :yp1, :yp2, :yp3, NOW())/opt/lampp/htdocs/yiicms/protected/modules/cms/components/Cms.php(170): CActiveRecord->save(false)
165 if (preg_match('/^[\w\d\._-]+$/i', $name) === 0) 166 throw new CException(__CLASS__.': Failed to create page. Name "'.$name.'" is invalid.'); 167 168 $page = new CmsPage(); 169 $page->name = $name; 170 $page->save(false); 171 return $page;
Another thing: I changed the ordering of the menu items (dragging them) but when clicking on 'Save' the ordering is not saved.
Please fix these errors! :)
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.