• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

flojon/KoalaContentBundle: A simple Symfony 2 CMS bundle using Mercury Editor

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

flojon/KoalaContentBundle

开源软件地址:

https://github.com/flojon/KoalaContentBundle

开源编程语言:

PHP 95.8%

开源软件介绍:

KoalaContentBundle

KoalaContentBundle is a simple CMS built for the Symfony 2 framework using the amazing Mercury Editor as front end editor.

Build Status

Install using composer (Symfony 2.1)

Add koala/content-bundle to composer.json.

"require": {
    ...
    "koala/content-bundle": "dev-master"        
}

Then run composer update to install KoalaContentBundle and all its requirements. Composer will automatically register the new namespaces.

Configuration

Register the new bundles in your app/AppKernel.php file:

public function registerBundles()
{
    $bundles = array(
        ...
        new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(),
        new Knp\Bundle\MenuBundle\KnpMenuBundle(),
        new Symfony\Cmf\Bundle\RoutingExtraBundle\SymfonyCmfRoutingExtraBundle(),
        new Koala\ContentBundle\KoalaContentBundle(),
    );

    return $bundles;
}

Enable the Doctrine Tree extension and the Symfony CMF router in your app/config/config.yml file:

stof_doctrine_extensions:
    orm:
        default:
            tree: true

symfony_cmf_routing_extra:
    chain:
        routers_by_id:
            koala_content.dynamic_router: 200
            router.default: 100

Install assets:

php app/console assets:install --symlink web

Install Mercury files under web/mercury. It's recommended to use the newest release, currently 0.8. (See See Mercury Downloads)

Download from https://github.com/downloads/jejacks0n/mercury/mercury-v0.8.0.zip and extract to web/mercury.

Next step is to setup the routing needed for the bundle to work. Add this to your app/config/routing.yml

koala_content:
    resource: @KoalaContentBundle/Resources/config/routing.yml
    prefix: /

_Note: By default Symfony has a welcome route in app/config/routing_dev.yml which you need to remove if you want to use the root.

If you rather want to content pages under a separate section you can change the prefix to something like /cms

The last step is to update the database schema and load some default content. Make sure you have setup your database config in app/config/parameters.yml before running the setup command:

php app/console koala_content:setup

Now fire up your browser and start editing!

External requirements




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
zhuguangxiang/koala-lang: Koala is a modern language.发布时间:2022-07-09
下一篇:
koalamon/Koalamon: Open Source Incident Management发布时间:2022-07-09
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap