Answers.Body: <p><strong>Goal</strong>: Filter documents by related vehicle characteristics.</p>
  
  <p>My first idea would be to create it as such:</p>
  
  <ul>
  <li>Create an assets volume where all your documents will be uploaded to.</li>
  <li>Create a vehicle category group for your vehicles such as you already defined (the structure you mentioned)</li>
  <li>Add 2 fields to the assets volume:
  
  <ul>
  <li>Vehicle (category field)</li>
  <li>Year (date field)</li>
  </ul></li>
  </ul>
  
  <p>This will allow you to add the relevant data to each document. You can than <a href="https://docs.craftcms.com/v3/dev/element-queries/asset-queries.html" rel="nofollow noreferrer">display</a> the documents on your frontend and search/filter them by category and/or date. 
  How you do that is up to you, either with Twig serverside or with VueJS for example client side.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-09T14:21:46.253Z
Answers.LastActivityDate: 2018-11-09T14:21:46.253Z
Answers.UserDisplayName: Tom De Smet
Body: <p>Hi i really would like some advise on best practices on setting up some data for my Craft APP.</p>
  
  <p>Most of my documents will be linked to vehicle make/model/trim/year. EG Audi A5 Sport 2009-2016 and/Or Audi A5 Sportback 2017+ .</p>
  
  <p>What would be the best way to do this? Would it be to create a new field type or use something like a table?</p>
  
  <p><strong>My First Idea was to do the following:</strong></p>
  
  <p><em>A Structure</em></p>
  
  <ul>
  <li>Level 1 : Vehicle Make
  
  <ul>
  <li>Level 2 : Vehicle Model
  
  <ul>
  <li>Level 3 : Vehicle Trim</li>
  </ul></li>
  </ul></li>
  </ul>
  
  <p>Then create a field (table) where i select either the trim or model, then select a date range.</p>
  
  <p>But what i want to do is in the front end select documents by everything under Make and/or Model and/or Trim and/or Year</p>
  
  <p>But i am not sure this is the best solution. </p>
  
  <p>Can anyone recommend?</p>
  
Tags: <craft3><fieldtypes><custom-fieldtype><table-field><plugin-supertable>
Title: Craft CMS 3 data structure advice for vehicle make, model, trim, year tagging
ThreadText: # Craft CMS 3 data structure advice for vehicle make, model, trim, year tagging
  
  (Asked by: username_0 on 2018-11-09)
  
  Hi i really would like some advise on best practices on setting up some data for my Craft APP.
  
  Most of my documents will be linked to vehicle make/model/trim/year. EG Audi A5 Sport 2009-2016 and/Or Audi A5 Sportback 2017+ .
  
  What would be the best way to do this? Would it be to create a new field type or use something like a table?
  
  **My First Idea was to do the following:**
  
  *A Structure*
  
  * Level 1 : Vehicle Make
    + Level 2 : Vehicle Model
      - Level 3 : Vehicle Trim
  
  Then create a field (table) where i select either the trim or model, then select a date range.
  
  But what i want to do is in the front end select documents by everything under Make and/or Model and/or Trim and/or Year
  
  But i am not sure this is the best solution.
  
  Can anyone recommend?
  
  **Tags:** craft3, fieldtypes, custom-fieldtype, table-field, plugin-supertable
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-11-09. Score: 2 | Accepted answer
  
  **Goal**: Filter documents by related vehicle characteristics.
  
  My first idea would be to create it as such:
  
  * Create an assets volume where all your documents will be uploaded to.
  * Create a vehicle category group for your vehicles such as you already defined (the structure you mentioned)
  * Add 2 fields to the assets volume:
    + Vehicle (category field)
    + Year (date field)
  
  This will allow you to add the relevant data to each document. You can than [display](https://docs.craftcms.com/v3/dev/element-queries/asset-queries.html) the documents on your frontend and search/filter them by category and/or date.
  How you do that is up to you, either with Twig serverside or with VueJS for example client side.
  
  
  ---
  
  