linestorm / gallery-component-bundle
此包已被废弃且不再维护。未建议替代包。
此包最新版本(dev-master)没有提供许可证信息。
LineStorm CMS内容的画廊组件,适用于symfony 2.3
dev-master
2014-07-10 22:05 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:20 UTC
README
LineStormCMS的画廊组件。
安装
此模块将为LineStorm CMS中的内容模块添加画廊功能。
- 使用composer下载包
- 启用Bundle
- 配置Bundle
- 安装资源
- 配置资源
步骤 1: 使用composer下载包
将 linestorm/gallery-component-bundle
添加到您的 composer.json
文件中,或者通过运行以下命令下载它
$ php composer.phar require linestorm/gallery-component-bundle
步骤 2: 启用Bundle
在您的 app/AppKernel.php
中启用poll bundle
public function registerBundles() { $bundles = array( // ... new LineStorm\GalleryComponentBundle\LineStormGalleryComponentBundle(), ); }
步骤 3: 配置Bundle
在 app/config/config.yml
文件中,向line_storm_cms命名空间和media命名空间中添加类实体定义
line_storm_cms: ... entity_classes: ... # Gallery Component content_gallery: Acme\DemoBundle\Entity\ContentGallery
步骤 4: 安装资源
### Bower 添加 .bower.json 到依赖项
### 手动下载 .bower.json 中的模块到您的资源文件夹
步骤 5: 配置资源
您需要将这些依赖路径添加到您的requirejs配置中
requirejs.config({ paths: { // ... // article component cms_gallery: '/path/to/bundles/linestormgallerycomponent/js/gallery', } });