Answers.Body: <p>I don't know about searching by version ID natively — I don't think Craft has that capability out-of-the-box... but I can envision setting up such a user guide using a Matrix, where each Matrix block represents a revision of content: Each block would have a field denoting which version the content was written for, along with the content itself. By default, you'd display each entry's most recent content by sorting the blocks by version-update number, and selecting the single most recent block from the sorted set. However, you could also display the docs for a 'legacy' version by filtering out blocks where the version-update number is greater than the version of interest.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-12-01T02:29:32.347Z
Answers.Text: Thanks. This would be feasible if I could have nested matrix blocks, but I am using a matrix for the body content already.
Answers.UserDisplayName: Lea Hayes
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-12-01T02:30:38.257Z
Answers.Text: Essentially I want to manually specify which revisions of an entry are major versions... or to somehow tag specific revisions (like one might do with Git). But like you say, currently Craft doesn't seem to offer a way to do this.
Answers.UserDisplayName: Lea Hayes
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-12-01T08:06:14.853Z
Answers.Text: I suppose, if you don't have too many major versions, you could add a new field for each version, which in your templates could fall back to the older versions' field data... but that too seems very cumbersome.
Answers.UserDisplayName: Michael Rog
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-11-30T23:26:02.963Z
Answers.LastActivityDate: 2014-11-30T23:26:02.963Z
Answers.UserDisplayName: Michael Rog
Body: <p>If I had a structure representing the user guide of a product; is it possible to select a specific version of user guide entries from a URL?</p>
  
  <pre><code>http://www.example.com/myproduct/docs/v2.0/installation
  </code></pre>
  
  <p>Where the logic would be something like (pseudo-code):</p>
  
  <pre><code>craft.entries('myProductDocs').versionLowerOrEqual('2.0').slug('installation')
  </code></pre>
  
  <p>I see that Craft has some provision for versioning entries since you can select from the drop-down in the entry editor interface. Is there a way to tame this?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-01-11T22:05:37.677Z
Comments.Text: I realize this is 3+ years old, but stumbled upon it through a semi-related issue. Curious if anyone has come up with a solution, and if it involved (or, could involve) tags/categories. The join/relation might be more complicated, but creating categories or tags for your major/minor versions and "bumping" certain pages would create relation records _for that specific entry version_. If those are queryable, there might be some opportunity to build some routes and/or nav structures and fetch the appropriate entry versions? Just a thought!
Comments.UserDisplayName: August Miller
Tags: <templating><entries><entry>
Title: Many versions of the same structure of entries?
ThreadText: # Many versions of the same structure of entries?
  
  (Asked by: username_0 on 2014-11-29)
  
  If I had a structure representing the user guide of a product; is it possible to select a specific version of user guide entries from a URL?
  
  ```
  http://www.example.com/myproduct/docs/v2.0/installation
  
  ```
  
  Where the logic would be something like (pseudo-code):
  
  ```
  craft.entries('myProductDocs').versionLowerOrEqual('2.0').slug('installation')
  
  ```
  
  I see that Craft has some provision for versioning entries since you can select from the drop-down in the entry editor interface. Is there a way to tame this?
  
  **Tags:** templating, entries, entry
  
  > **Comments:**
  > **username_1**: I realize this is 3+ years old, but stumbled upon it through a semi-related issue. Curious if anyone has come up with a solution, and if it involved (or, could involve) tags/categories. The join/relation might be more complicated, but creating categories or tags for your major/minor versions and "bumping" certain pages would create relation records _for that specific entry version_. If those are queryable, there might be some opportunity to build some routes and/or nav structures and fetch the appropriate entry versions? Just a thought!  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2014-11-30. Score: 1
  
  I don't know about searching by version ID natively — I don't think Craft has that capability out-of-the-box... but I can envision setting up such a user guide using a Matrix, where each Matrix block represents a revision of content: Each block would have a field denoting which version the content was written for, along with the content itself. By default, you'd display each entry's most recent content by sorting the blocks by version-update number, and selecting the single most recent block from the sorted set. However, you could also display the docs for a 'legacy' version by filtering out blocks where the version-update number is greater than the version of interest.
  
  > **Comments:**
  > **username_0**: Thanks. This would be feasible if I could have nested matrix blocks, but I am using a matrix for the body content already.  
  > **username_0**: Essentially I want to manually specify which revisions of an entry are major versions... or to somehow tag specific revisions (like one might do with Git). But like you say, currently Craft doesn't seem to offer a way to do this.  
  > **username_2**: I suppose, if you don't have too many major versions, you could add a new field for each version, which in your templates could fall back to the older versions' field data... but that too seems very cumbersome.  
  
  ---
  
  