chemezov/luya-module-tilda
最新稳定版本:1.0.2
Composer 安装命令:
composer require chemezov/luya-module-tilda
包简介
LUYA module with Tilda block
README 文档
README
LUYA module with Tilda block
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist chemezov/luya-module-tilda "*"
or add
"chemezov/luya-module-tilda": "*"
to the require section of your composer.json file.
Usage
In order to add the modules to your project go into the modules section of your config:
return [ 'modules' => [ // ... 'tilda' => [ 'class' => 'chemezov\luya\tilda\frontend\Module', 'useAppViewPath' => true, // When enabled the views will be looked up in the @app/views folder, otherwise the views shipped with the module will be used. // Required fields 'cache' => 'tildaCache', 'publicKey' => 'YOUR_PUBLIC_KEY', 'secretKey' => 'YOUR_SECRET_KEY', // Optional fields // You can leave this field empty. In this case, all projects will be shown. 'projectIds' => [ 123, // Project ID 456, // Project ID ], // Block wrapper css class 'defaultBlockCssClasses' => 'b-tilda-content-outer', 'blockGroup' => \app\blockgroups\ProjectGroup::class, // The directory for downloading resources (css, js, img). Make sure it has write permissions. 'assetsPath' => '@webroot/uploads/tilda', 'assetsUrl' => '/uploads/tilda', ], // ... ], 'components' => [ // Do not specify an empty cache, otherwise go beyond the API request limit 'tildaCache' => [ 'class' => 'yii\caching\FileCache', ], ], ];
Make sure you have correct write permissions to assetsPath and assetsUrl can be reached through http(s) request.
Also make sure that the queue is started via cron.
* * * * * cd /path/to/www && ./luya queue/run -v
This is necessary when reloading resources via the webhook.
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2024-06-29