Giter Site home page Giter Site logo

luya-module-tilda's Introduction

LUYA Tilda module

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.

luya-module-tilda's People

Contributors

chemezov avatar

Watchers

 avatar

luya-module-tilda's Issues

write README.md

add documentation with installation and configuration process.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.