Answers.Body: <p>Ah, in that case you'll need to make your own ElementType. You should probably check out <a href="https://github.com/pixelandtonic/Events">https://github.com/pixelandtonic/Events</a> - that's meant to be a simple ElementType to serve as an entry point while we get some documentation together.</p>
  
  <p>Also, there are some videos to watch over here: <a href="http://buildwithcraft.com/docs/plugins/working-with-elements#creating-new-element-types">http://buildwithcraft.com/docs/plugins/working-with-elements#creating-new-element-types</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-07-17T06:48:34.083Z
Answers.LastActivityDate: 2014-07-17T06:48:34.083Z
Answers.UserDisplayName: Andris Sevcenko
Body: <p>I have been looking at the BaseElementFieldType.php file to try and understand how to use it for my own field type. How do I provide that field type with my own array of data to use? I believe it has to do with the sources,criteria, or elements but it is unclear to me. </p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-07-17T05:45:40.023Z
Comments.Text: Can you elaborate about what modal exactly are you talking about?
Comments.UserDisplayName: Andris Sevcenko
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2014-07-17T06:19:41.123Z
Comments.Text: When using a the BaseElementFieldType it uses the elementSelect form elements.  It is the input type assets uses or categories, or when selecting a relation. I am trying to incorporate that same input but using my own data to populate the modal window from which you can select content.
Comments.UserDisplayName: a-am
Tags: <plugin-development><fieldtypes>
Title: Using ElementType as field type for plugin in what way do I provide my own data to the modal?
ThreadText: # Using ElementType as field type for plugin in what way do I provide my own data to the modal?
  
  (Asked by: username_0 on 2014-07-17)
  
  I have been looking at the BaseElementFieldType.php file to try and understand how to use it for my own field type. How do I provide that field type with my own array of data to use? I believe it has to do with the sources,criteria, or elements but it is unclear to me.
  
  **Tags:** plugin-development, fieldtypes
  
  > **Comments:**
  > **username_1**: Can you elaborate about what modal exactly are you talking about?  
  > **username_0**: When using a the BaseElementFieldType it uses the elementSelect form elements.  It is the input type assets uses or categories, or when selecting a relation. I am trying to incorporate that same input but using my own data to populate the modal window from which you can select content.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2014-07-17. Score: 6 | Accepted answer
  
  Ah, in that case you'll need to make your own ElementType. You should probably check out <https://github.com/pixelandtonic/Events> - that's meant to be a simple ElementType to serve as an entry point while we get some documentation together.
  
  Also, there are some videos to watch over here: <http://buildwithcraft.com/docs/plugins/working-with-elements#creating-new-element-types>
  
  
  ---
  
  