Comments (3)
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.
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.
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)
- possible conflict between disable event and other code that depends on those privs HOT 3
- Add a Plugin directory to the templates section HOT 1
- interference with adi_variables HOT 2
- Undefined index when disabling HOT 1
- Tip: some python scripts to help you export all your forms, pages, sections & css from DB to flat files HOT 5
- Not writing to disk HOT 4
- allow flat to look into subdirectories for forms... HOT 5
- write db to files function? HOT 4
- Form names without a type in the filename are not imported
- When importing prefs, the section panel is hidden
- variable / prefs clarification needed (in docs perhaps) HOT 1
- Prefs: option to set label and form input type? HOT 2
- trigger a function on db-update? HOT 1
- Invalid argument when no templates in the directory
- Separate definition and functionality HOT 1
- Race conditions and importing downtime HOT 1
- Presentation > Pages, Forms no longer visible in nav HOT 1
- change "css" to "styles" in the templates directory HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rah_flat.