Comments (1)
Good news, this is already possible using Craft's native disabledPlugins
setting!
// Global settings
'*' => [
...
],
// Dev environment settings
'dev' => [
'disabledPlugins' => ['inventory']
]
Or alternatively...
// All settings together, but dynamic
'*' => [
'disabledPlugins' => [
(App::env('ENVIRONMENT') === 'dev' ? 'inventory' : null)
]
]
I disagree that Inventory should always be hidden in non-dev
environments. There are valid reasons for wanting to see where fields are being used, even while navigating a production
site.
It's true, however, that those fields aren't editable if allowAdminChanges
is disabled. So I've just pushed a fix which hides the "edit" buttons and clarifies when Inventory is in "read only" mode...
Hope that helps! 🙂
from craft-inventory.
Related Issues (20)
- Add setting to hide/show plugin in main menu HOT 3
- Undefined column error on postgres HOT 1
- Inventory showing count for entry types of sections that have been removed HOT 6
- Clone fields HOT 2
- 'Call to undefined method' on Vizy Field HOT 4
- A possible bug? HOT 1
- [BUG] PHP Notice after removing global set (unable to view the inventory panel) HOT 2
- Field added to section but Inventory not reporting it HOT 7
- Trying to access array offset on value of type null HOT 8
- Exception when running Craft update from CLI HOT 3
- Impossible to access Utilities > Field Inventory after update from 2.2 to 3.0.1 HOT 2
- Craft 5 compatibility HOT 3
- Craft 5 compatibility? HOT 1
- Add ability to delete field HOT 2
- Matrix field inventory? HOT 3
- Add a license? HOT 1
- Make Available via `composer` Compatible with Craft 2 HOT 1
- Calendar Event Not Found HOT 3
- TypeError on Craft3 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 craft-inventory.