Code Monkey home page Code Monkey logo

Comments (3)

gocom avatar gocom commented on June 20, 2024

rah_flat doesn't support plugin cache directory and you still need to install it normally to get it working; the plugin uses installation events and relays plugin load order. The plugin cache directory itself is limited, and isn't really meant for production, but for plugin development.

If the plugin is installed through normal supported means, or using Composer package manager (which runs plugins as normal files too), you can disable the plugin from the Plugins panel. That's also the correct way of disabling the plugin added features as it removes the added resource load (no code will need to be executed). Adding such additional option on the other hand will still need to load the plugin and execute code, and indirectly recommends using the wrong means.

If you want to disable the plugin when run through plugin cache directory (which I do not recommend and can't support, because of its limitations), I recommend you to use symbolic links. Have a 'plugins_available' directory, and site specific 'site1/plugins_enabled' directories that links to those available plugins.

To get rah_flat running in plugin cache directory, you must first install the plugin normally, then delete its row from txp_plugins database table, and add the plugin to a the plugin cache directory that must not be located within publicly accessible document root. Having the plugin's source file in publicly accessible location may lead into some unexpected security issues.

If you are using some sort of management plugin for the plugin cache directory, you may want to recommend feature addition there.

from rah_flat.

gocom avatar gocom commented on June 20, 2024

You can also disable the plugin's importing features by either:

  • Emptying the path option.
  • Removing, or not creating, the template directories or removing the directory's read access. Each content-type is disabled if it doesn't have a matching directory.

from rah_flat.

c2mrdale avatar c2mrdale commented on June 20, 2024

While this is true, the latest version has the ability to trigger these
events (install, enable or both) manually.

On 5/16/14, 6:18 AM, Jukka Svahn wrote:

If the plugin is installed through normal supported means, or using
Composer package manager (which runs plugins as normal files too), you
can disable the plugin from the Plugins panel. That's also the correct
way of disabling the plugin added features as it removes the added
resource load (no code will need to be executed). Adding such
additional option on the other hand will still need to load the plugin
and execute code, and indirectly recommends using the wrong means.

I can certainly just alter the path to the flat directory to disable it.

Gotta say this plugin is amazing, It makes building 900% faster. Abut
the only thing I could ask for is an export, so that I can get files in
the right format from an existing site... that takes a bit of work.

from rah_flat.

Related Issues (19)

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.