Answers.Body: <p><a href="https://i.sstatic.net/aFQG1.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/aFQG1.png" alt="enter image description here" /></a></p>
  <p>No need for a plugin, just don't check this option</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-25T12:57:11.883Z
Answers.Text: Is there a way to set this programmatically?
Answers.UserDisplayName: Mike F
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-25T12:59:33.433Z
Answers.Text: Of course grab the section model and set the property to false
  `$section->enableVersioning = false; Craft::$app->getSections()->saveSection($section);`
Answers.UserDisplayName: Robin Schambach
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-26T13:43:48.590Z
Answers.Text: Ok, maybe that was a bad response to your answer but as I said in my original question I am looking to set this through configuration rather than using a migration or something similar. Is there a way to do it through configuration?
Answers.UserDisplayName: Mike F
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-26T13:46:01.523Z
Answers.Text: No. Why can't you just not tick the checkbox? What's the purpose of a checkbox if you want to ignore it, the checkbox is actually your configuration
Answers.UserDisplayName: Robin Schambach
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-27T14:41:57.057Z
Answers.Text: I can "just tick the checkbox" but I want to globally enforce this behaviour on every project so it cannot be overriden - even if an admin wanted to change it. https://12factor.net/config
Answers.UserDisplayName: Mike F
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-27T14:43:10.220Z
Answers.Text: You can create a module and set up an event to set it to false during `EVENT_BEFORE_SAVE_SECTION`
Answers.UserDisplayName: Robin Schambach
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-23T11:29:06.017Z
Answers.LastActivityDate: 2018-06-23T11:29:06.017Z
Answers.LastEditDate: 2020-06-17T08:56:27.903Z
Answers.UserDisplayName: Robin Schambach
Body: <p>Had a quick search online and I can't find a way to disable entry versioning.</p>
  
  <p>Is this possible? There's some plugins that do this but I'm hoping there's some config I can set somewhere?</p>
  
Tags: <config><configuration><entry-versions>
Title: Disable entry versioning
ThreadText: # Disable entry versioning
  
  (Asked by: username_0 on 2018-06-23)
  
  Had a quick search online and I can't find a way to disable entry versioning.
  
  Is this possible? There's some plugins that do this but I'm hoping there's some config I can set somewhere?
  
  **Tags:** config, configuration, entry-versions
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-06-23. Score: 2
  
  [![enter image description here](https://i.sstatic.net/aFQG1.png)](https://i.sstatic.net/aFQG1.png)
  
  No need for a plugin, just don't check this option
  
  > **Comments:**
  > **username_0**: Is there a way to set this programmatically?  
  > **username_1**: Of course grab the section model and set the property to false `$section->enableVersioning = false; Craft::$app->getSections()->saveSection($section);`  
  > **username_0**: Ok, maybe that was a bad response to your answer but as I said in my original question I am looking to set this through configuration rather than using a migration or something similar. Is there a way to do it through configuration?  
  > **username_1**: No. Why can't you just not tick the checkbox? What's the purpose of a checkbox if you want to ignore it, the checkbox is actually your configuration  
  > **username_0**: I can "just tick the checkbox" but I want to globally enforce this behaviour on every project so it cannot be overriden - even if an admin wanted to change it. https://12factor.net/config  
  > **username_1**: You can create a module and set up an event to set it to false during `EVENT_BEFORE_SAVE_SECTION`  
  
  ---
  
  