Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hidding models in admin pannel #4

Open
Seafnox opened this issue Feb 26, 2016 · 1 comment
Open

Hidding models in admin pannel #4

Seafnox opened this issue Feb 26, 2016 · 1 comment

Comments

@Seafnox
Copy link

Seafnox commented Feb 26, 2016

Some models in project must be hidden even in admin pannel.
The easest way for it

  1. add
    module.exports = { cms: false, ... }
  2. add checking special field in config/cms.js
    module.exports = { models: { modelName: false, modelName2: { field1: false, field2: false } } }

Second way is needed when models was created in node modules, which was included from npm/

@Seafnox
Copy link
Author

Seafnox commented Feb 26, 2016

For solme reason code was collapsed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants