linestorm / article-component-bundle
此包已被放弃且不再维护。没有建议的替代包。
此包最新版本(dev-master)没有可用的许可信息。
LineStorm内容为symfony 2.3的文章组件
dev-master
2014-07-03 16:40 UTC
Requires
- php: >=5.3.0
- linestorm/linestorm-cms: dev-master
- symfony/symfony: >=2.3
This package is auto-updated.
Last update: 2020-04-10 17:18:29 UTC
README
LineStormCMS的文章组件。
安装
此模块将为LineStorm CMS的内容模块添加文章功能。
- 使用composer下载捆绑包
- 启用捆绑包
- 配置捆绑包
- 安装资源
- 配置资源
步骤1:使用composer下载捆绑包
将linestorm/article-component-bundle
添加到您的composer.json
文件中,或者通过运行以下命令下载它
$ php composer.phar require linestorm/article-component-bundle
步骤2:启用捆绑包
在app/AppKernel.php
中启用poll捆绑包
public function registerBundles() { $bundles = array( // ... new LineStorm\ArticleComponentBundle\LineStormArticleComponentBundle(), ); }
步骤3:配置捆绑包
在app/config/config.yml
文件中,在line_storm_cms命名空间和media命名空间内添加类实体定义
line_storm_cms: ... entity_classes: ... # Article Component content_article: Acme\DemoBundle\Entity\ContentArticle
步骤4:安装资源
###Bower 将.bower.json添加到依赖中
###手动下载.bower.json中的模块到您的资源文件夹
步骤5:配置资源
您需要将这些依赖路径添加到您的requirejs配置中
requirejs.config({ paths: { // ... // article component cms_article: '/path/to/bundles/linestormarticlecomponent/js/article', } });